Skip to content
Snippets Groups Projects

:ambulance: fix getting module_list

Merged Vincent Hatakeyama requested to merge topic/default/fix into branch/default
1 file
+ 1
17
Compare changes
  • Side-by-side
  • Inline
+ 1
17
@@ -61,23 +61,7 @@ class Configuration(object):
_logger.error("Expansion without path for %s", name)
raise Exception("Expansion without path for %s" % name)
else:
# put in re_path everything but the first path element
# this allows blacklisting odoo-mint/theme when expanding
# mint hr.
if path:
d = os.path.split(path)
p = ""
while d:
d, tail = d
if d:
p = os.path.join(tail, p)
d = os.path.split(d)
re_path = (
os.path.join(p, value["path"]) if p else value["path"]
)
else:
re_path = value["path"]
if blacklist and re.match(blacklist, re_path):
if blacklist and re.match(blacklist, value["path"]):
_logger.info(
"Ignoring directory '%s' due to blacklisting",
os.path.join(path, value["path"])
Loading