Skip to content
Snippets Groups Projects
Commit e05905d98a14 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: only consider directories for glob in docker_dev_start

parent 2d149b21c7be
No related branches found
No related tags found
No related merge requests found
...@@ -30,5 +30,5 @@ ...@@ -30,5 +30,5 @@
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
__version__ = "2.0.2" __version__ = "2.0.3"
__date__ = "2017-08-11" __date__ = "2017-08-11"
...@@ -34,5 +34,5 @@ ...@@ -34,5 +34,5 @@
__date__ = "2017-08-11" __date__ = "2017-08-11"
__updated__ = "2020-03-18" __updated__ = "2020-06-22"
def which(program): def which(program):
...@@ -383,4 +383,5 @@ ...@@ -383,4 +383,5 @@
modules = [] modules = []
if c.has_option("odoo_scripts", "modules"): if c.has_option("odoo_scripts", "modules"):
directories_only = list()
for entry in c.get("odoo_scripts", "modules").split(): for entry in c.get("odoo_scripts", "modules").split():
...@@ -386,5 +387,8 @@ ...@@ -386,5 +387,8 @@
for entry in c.get("odoo_scripts", "modules").split(): for entry in c.get("odoo_scripts", "modules").split():
modules.extend(glob.glob(entry)) for file in glob.glob(entry):
if os.path.isdir(file):
directories_only.append(file)
modules.extend(directories_only)
_logger.debug("addon modules: %s", ",".join(modules)) _logger.debug("addon modules: %s", ",".join(modules))
if not db_user and c.has_option("odoo_scripts", "db_user"): if not db_user and c.has_option("odoo_scripts", "db_user"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment