fix config.VERSION_LINK to use relpath('.')
authorTero Marttila <terom@fixme.fi>
Sat, 14 Feb 2009 20:13:26 +0200
changeset 128 2a8a190f8aee
parent 127 5746705a2719
child 129 67a30d680f60
fix config.VERSION_LINK to use relpath('.')
config.py
--- a/config.py	Sat Feb 14 20:09:08 2009 +0200
+++ b/config.py	Sat Feb 14 20:13:26 2009 +0200
@@ -11,7 +11,7 @@
 import version
 import log_formatter
 
-# build relative paths
+# build relative paths to the dir containing this file
 relpath = lambda path : os.path.join(os.path.dirname(__file__), path)
 
 ###                     ###
@@ -54,7 +54,7 @@
 
 # version stuff
 HGWEB_URL                       = "http://hg.qmsk.net/irclogs2"
-VERSION_LINK                    = version.version_link_hg(HGWEB_URL, "/var/www/irclogs.qmsk.net")
+VERSION_LINK                    = version.version_link_hg(HGWEB_URL, relpath("."))
 
 # Footer text to display
 HTML_FOOTER_TEXT                = '<a href="http://projects.qmsk.net/irclogs2">irclogs2</a> version %s' % (VERSION_LINK)