X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/958d21141796b86d79fc95c86f679d08652ef78e..f874dc7a70fd66a320882bcc1fd71e8324918f2c:/blitiri.cgi
diff --git a/blitiri.cgi b/blitiri.cgi
index dd87387..f13e59a 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,6 +60,10 @@ 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 = """
@@ -85,6 +92,7 @@ default_main_footer = """
%(showyear)s: %(monthlinks)s
years: %(yearlinks)s
subscribe: atom
+ views: blog list