From: Leandro Lucarella Date: Mon, 4 Aug 2008 01:36:00 +0000 (-0300) Subject: Apply os.path.realpath() to *_path config variables to support relative paths X-Git-Url: https://git.llucax.com/software/blitiri.git/commitdiff_plain/f874dc7a70fd66a320882bcc1fd71e8324918f2c?ds=sidebyside;hp=5e45cd0354881aee35f582b4c233eb8341ebc7a3 Apply os.path.realpath() to *_path config variables to support relative paths --- 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 = """