X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/a952c0e94cd764cf1d1cb177c46ebc0cf8c2785d..f874dc7a70fd66a320882bcc1fd71e8324918f2c:/blitiri.cgi
diff --git a/blitiri.cgi b/blitiri.cgi
index a72ccdd..f13e59a 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -50,13 +50,19 @@ 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
@@ -86,6 +92,7 @@ default_main_footer = """
%(showyear)s: %(monthlinks)s
years: %(yearlinks)s
subscribe: atom
+ views: blog list