X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/a952c0e94cd764cf1d1cb177c46ebc0cf8c2785d..d209a0e7a339a8072e2ca93ae6e776a8dd14c82c:/blitiri.cgi
diff --git a/blitiri.cgi b/blitiri.cgi
index a72ccdd..b95d5ca 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -50,14 +50,20 @@ 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
-if os.path.isfile("config.py"):
- try:
- from config import *
- except:
- pass
+try:
+ from config import *
+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 = """
@@ -86,6 +92,7 @@ default_main_footer = """
%(showyear)s: %(monthlinks)s
years: %(yearlinks)s
subscribe: atom
+ views: blog list