From c5c224752fc0d58d2f48dedbd5fa0e0acb3fe264 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 27 Jan 2012 12:30:33 +0100 Subject: [PATCH] [FIX] CSS paths adaptation when running openerp-web (python side) in Windows lp bug: https://launchpad.net/bugs/920938 fixed bzr revid: xmo@openerp.com-20120127113033-5jb9bcfothcd30ly --- addons/web/controllers/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 218f1fc0284..a5fe8eda60a 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -164,8 +164,9 @@ class WebClient(openerpweb.Controller): with open(f) as fp: data = fp.read() - web_path = file_map[f] - web_dir = os.path.dirname(web_path) + path = file_map[f] + # convert FS path into web path + web_dir = '/'.join(os.path.dirname(path).split(os.path.sep)) data = re.sub( rx_import,