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)