Commit e673eb28 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Normalize the paths to eliminate the effect of double-slashes.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8729 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5c15d29b
...@@ -193,7 +193,9 @@ class BusinessTemplateFolder(BusinessTemplateArchive): ...@@ -193,7 +193,9 @@ class BusinessTemplateFolder(BusinessTemplateArchive):
f.close() f.close()
def _initImport(self, file=None, path=None, **kw): def _initImport(self, file=None, path=None, **kw):
self.file_list = file # Normalize the paths to eliminate the effect of double-slashes.
self.file_list = [os.path.normpath(f) for f in file]
path = os.path.normpath(path)
# to make id consistent, must remove a part of path while importing # to make id consistent, must remove a part of path while importing
self.root_path_len = len(string.split(path, os.sep)) + 1 self.root_path_len = len(string.split(path, os.sep)) + 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment