1.1 --- a/moinsetup.py Wed May 26 02:06:08 2010 +0200
1.2 +++ b/moinsetup.py Wed May 26 02:21:43 2010 +0200
1.3 @@ -205,7 +205,7 @@
1.4
1.5 # Strip any trailing "/" from the URL path.
1.6
1.7 - if url_path.endswith("/"):
1.8 + if url_path != "/" and url_path.endswith("/"):
1.9 self.url_path = url_path[:-1]
1.10 else:
1.11 self.url_path = url_path
1.12 @@ -404,7 +404,7 @@
1.13 # / -> /moin_static187
1.14 # /hgwiki -> /hgwiki/moin_static187
1.15
1.16 - self.static_url_path = self.url_path + "/" + self.get_static_identifier()
1.17 + self.static_url_path = self.url_path + (self.url_path != "/" and "/" or "") + self.get_static_identifier()
1.18 url_prefix_static = "%r" % self.static_url_path
1.19
1.20 # Copy the Wiki configuration file from the distribution.