git » blitiri » commit f874dc7

Apply os.path.realpath() to *_path config variables to support relative paths

author Leandro Lucarella
2008-08-04 01:36:00 UTC
committer Alberto Bertogli
2008-08-07 05:14:20 UTC
parent 5e45cd0354881aee35f582b4c233eb8341ebc7a3

Apply os.path.realpath() to *_path config variables to support relative paths

blitiri.cgi +4 -0

diff --git a/blitiri.cgi b/blitiri.cgi
index 1dadce5..f13e59a 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -60,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 = """