X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/e08e65182823a7ef54e4c69f054754ad5b424720..f874dc7a70fd66a320882bcc1fd71e8324918f2c:/blitiri.cgi?ds=sidebyside
diff --git a/blitiri.cgi b/blitiri.cgi
index c43835d..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