changeset 222:316a2b3d4126

added switch for replacing backslashes in win32
author Stephan Holl <stephan.holl@intevation.de>
date Mon, 25 Jul 2011 12:37:08 +0200
parents a44d442577ca
children e412fad185ad
files contrib/python/generateHTML.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]) 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)