mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
added programming directive lines
This commit is contained in:
parent
fe64357a33
commit
e436e07f5f
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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__))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue