Mercurial > mxd2map
diff contrib/python/generateHTML.py @ 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 | bef2e9522741 |
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])