diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-01-15 17:48:36 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-01-15 17:48:36 +0100 |
| commit | 952f78445438f7634d08667a8fa3dd88144695ab (patch) | |
| tree | c61579c0fbeb07a35805d0ea77936d1c205f0992 /odoo/modules/module.py | |
| parent | e033114879cfe4a487549c0abbe37ec18bc151c9 (diff) | |
| parent | 4f2f29953468e4de8aedf73461b0f76dbe1eeca8 (diff) | |
[MERGE] forward port branch 11.0 up to 4f2f2995346
Diffstat (limited to 'odoo/modules/module.py')
| -rw-r--r-- | odoo/modules/module.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odoo/modules/module.py b/odoo/modules/module.py index d92e2fbf6d6..214c3642331 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -128,17 +128,17 @@ def initialize_sys_path(): global ad_paths global hooked - dd = tools.config.addons_data_dir + dd = os.path.normcase(tools.config.addons_data_dir) if os.access(dd, os.R_OK) and dd not in ad_paths: ad_paths.append(dd) for ad in tools.config['addons_path'].split(','): - ad = os.path.abspath(tools.ustr(ad.strip())) + ad = os.path.normcase(os.path.abspath(tools.ustr(ad.strip()))) if ad not in ad_paths: ad_paths.append(ad) # add base module path - base_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'addons')) + base_path = os.path.normcase(os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'addons'))) if base_path not in ad_paths and os.path.isdir(base_path): ad_paths.append(base_path) |
