* src/plugins/NarrativeWeb.py: Fix reference paths on Windows.
svn: r8467
This commit is contained in:
parent
04df3f6e89
commit
48394f8bab
@ -1,3 +1,6 @@
|
|||||||
|
2007-05-13 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/plugins/NarrativeWeb.py: Fix reference paths on Windows.
|
||||||
|
|
||||||
2007-05-11 Benny Malengier <bm@cage.ugent.be>
|
2007-05-11 Benny Malengier <bm@cage.ugent.be>
|
||||||
* src/GrampsDbUtils/_ReadXML.py:
|
* src/GrampsDbUtils/_ReadXML.py:
|
||||||
* src/GrampsDb/_GrampsDbWriteXML.py:
|
* src/GrampsDb/_GrampsDbWriteXML.py:
|
||||||
|
@ -162,7 +162,7 @@ class BasePage:
|
|||||||
|
|
||||||
def store_file(self,archive,html_dir,from_path,to_path):
|
def store_file(self,archive,html_dir,from_path,to_path):
|
||||||
if archive:
|
if archive:
|
||||||
archive.add(from_path,to_path)
|
archive.add(str(from_path),str(to_path))
|
||||||
else:
|
else:
|
||||||
dest = os.path.join(html_dir,to_path)
|
dest = os.path.join(html_dir,to_path)
|
||||||
dirname = os.path.dirname(dest)
|
dirname = os.path.dirname(dest)
|
||||||
@ -211,7 +211,7 @@ class BasePage:
|
|||||||
|
|
||||||
def link_path(self,name,path):
|
def link_path(self,name,path):
|
||||||
base = self.build_name("",name)
|
base = self.build_name("",name)
|
||||||
path = os.path.join(path,name[0],name[1],base)
|
path = "%s/%s/%s/%s" % (path,name[0],name[1],base)
|
||||||
if os.sys.platform == "win32":
|
if os.sys.platform == "win32":
|
||||||
path = path.lower()
|
path = path.lower()
|
||||||
return path
|
return path
|
||||||
|
Loading…
Reference in New Issue
Block a user