X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/958d21141796b86d79fc95c86f679d08652ef78e..453ef6e633943c6f8bab3c719e24668aeba34836:/blitiri.cgi
diff --git a/blitiri.cgi b/blitiri.cgi
index dd87387..829a8cd 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