summaryrefslogtreecommitdiff
path: root/helper.py
blob: 69d6ab28efc106b8ffd409fb0c9167454b9075e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)