[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
This commit is contained in:
Xavier Morel 2012-01-27 12:30:33 +01:00
parent bc2823b926
commit c5c224752f
1 changed files with 3 additions and 2 deletions

View File

@ -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,