summaryrefslogtreecommitdiff
path: root/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'helper.py')
-rw-r--r--helper.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/helper.py b/helper.py
index 910da0d..e0d6aad 100644
--- a/helper.py
+++ b/helper.py
@@ -1,4 +1,9 @@
import web
+import os
+
+APPDIR = os.path.dirname(os.path.abspath(__file__))
+def appdir (*args):
+ return os.path.join(APPDIR, *args)
def url (path):
return "\"%s\"" % web.url(path)