[MXD2map-commits] bsh.mxd-konverter: r222:316a2b3d4126
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 28 11:13:56 CEST 2011
details: bsh.mxd-konverter/rev/316a2b3d4126
changeset: 222:316a2b3d4126
user: Stephan Holl <stephan.holl at intevation.de>
date: Mon Jul 25 12:37:08 2011 +0200
description:
added switch for replacing backslashes in win32
diffstat:
contrib/python/generateHTML.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r a44d442577ca -r 316a2b3d4126 contrib/python/generateHTML.py
--- a/contrib/python/generateHTML.py Mon Jul 25 12:33:24 2011 +0200
+++ b/contrib/python/generateHTML.py Mon Jul 25 12:37:08 2011 +0200
@@ -84,6 +84,8 @@
i = 0
print "<ul>"
while i < len(groups):
+ if os.name == "nt":
+ mapfile = mapfile.replace('\\', '/')
urlmapfile = url + '?map=' + mapfile
urlmapfile += '&template=openlayers&mode=browse&layers=' + groups[i]
print "<li><a target='_group' href='%s'>%s</a></li>" % (urlmapfile, groups[i])
More information about the MXD2map-commits
mailing list