X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/1ed8b3ab6ffa91ec28028bd442403d6f632970a7..e3c7d198b1679ff33fc1e4fc800aa61f22a5ab31:/blitiri.cgi diff --git a/blitiri.cgi b/blitiri.cgi index f08247e..15c820e 100755 --- a/blitiri.cgi +++ b/blitiri.cgi @@ -50,6 +50,9 @@ import urllib import cgi from docutils.core import publish_parts +# Before importing the config, add our cwd to the Python path +sys.path.append(os.getcwd()) + # Load the config file, if there is one try: from config import * @@ -57,17 +60,22 @@ except: pass +# Pimp *_path config variables to support relative paths +data_path = os.path.realpath(data_path) +templates_path = os.path.realpath(templates_path) + # Default template -default_main_header = """ - +default_main_header = """\ + + - +
- +