# HG changeset patch # User Tero Marttila # Date 1234635206 -7200 # Node ID 2a8a190f8aee6dc17cb9f5d91a98a3c182f89341 # Parent 5746705a271944683dbf3b26a273904d216d6b61 fix config.VERSION_LINK to use relpath('.') diff -r 5746705a2719 -r 2a8a190f8aee 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 = 'irclogs2 version %s' % (VERSION_LINK)