--- 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)