summaryrefslogtreecommitdiff
path: root/helper.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--helper.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/helper.py b/helper.py
new file mode 100644
index 0000000..69d6ab2
--- /dev/null
+++ b/helper.py
@@ -0,0 +1,16 @@
+import web
+import os
+import cStringIO
+
+opj = os.path.join
+
+# some nice imports
+import itertools as it
+
+
+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)