added programming directive lines

This commit is contained in:
JesseBot 2016-01-03 19:31:09 +00:00
parent fe64357a33
commit e436e07f5f
2 changed files with 3 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#!/usr/bin/python
# production jessebot.com web routing bottle file
import logging
@ -14,6 +15,7 @@ def get_global_variable(global_variable):
txt = doc["Globals"][global_variable]
return txt
# grab web root
WEB_ROOT = get_global_variable('web_root')
# set logging

View file

@ -1,3 +1,4 @@
#!/usr/bin/python
import bottle, os, sys
# Change working directory so relative paths (and template lookup) work again
os.chdir(os.path.dirname(__file__))