history_url = '../wikigit/wiki.git'
-post_edit_hook = './post_edit_hook.sh'
+post_edit_hook = os.path.join(script_path(), 'post_edit_hook.sh')
datetime_fmt = '%a, %d %b %Y %H:%M:%S %Z'
image_maxwidth = 400
# Set to True for CGI var dump
-#debug_cgi = True
+debug_cgi = False
def script_name():
return os.environ.get('SCRIPT_NAME', '')
+def script_path():
+ return os.path.split(os.environ.get('SCRIPT_FILENAME', ''))[0]
+
def query_string():
path_info = os.environ.get('PATH_INFO', '')
if len(path_info) and path_info[0] == '/':