diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-01-16 17:02:34 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-01-16 17:02:34 +0100 |
| commit | 378b283c02da5e6d3425f339668edcd63ee62fe5 (patch) | |
| tree | bbaecb2d1241e51e8ea5b0a10ab35ff73aff63a6 /odoo/modules | |
| parent | e79c35dcbc1525196263cca6aa9da14ca30d2c0a (diff) | |
| parent | 83cc046e9a90e8592d0d47c7162ab7bd923621ba (diff) | |
[MERGE] forward port branch saas-11.3 up to 83cc046e9a9
Diffstat (limited to 'odoo/modules')
| -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 93be467b0f3..e732104f3f2 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) |
