Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (35 sloc) 1.06 kB
30cf4ff @zemanel - organized imports/modules and added a few deps
authored
1 #!/usr/bin/python2.5
2
3 import os
4
5 join = os.path.join
6 base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
7 base = os.path.dirname(base)
8
9 import sys
10
11 sys.path[0:0] = [
12 join(base, 'app'),
13 join(base, 'app/lib'),
14 join(base, 'app/lib/dist'),
15 join(base, 'eggs/appfy.recipe.gae-0.9.3-py2.5.egg'),
16 join(base, 'var/parts/google_appengine'),
17 ]
18
19 _interactive = True
20 if len(sys.argv) > 1:
21 _options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:')
22 _interactive = False
23 for (_opt, _val) in _options:
24 if _opt == '-i':
25 _interactive = True
26 elif _opt == '-c':
27 exec _val
28 elif _opt == '-m':
29 sys.argv[1:] = _args
30 _args = []
31 __import__("runpy").run_module(
32 _val, {}, "__main__", alter_sys=True)
33
34 if _args:
35 sys.argv[:] = _args
36 __file__ = _args[0]
37 del _options, _args
38 execfile(__file__)
39
40 if _interactive:
41 del _interactive
42 __import__("code").interact(banner="", local=globals())
Something went wrong with that request. Please try again.