-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuckley.py
executable file
·56 lines (46 loc) · 1.39 KB
/
buckley.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim:ts=2:sw=2:expandtab
#
# Copyright (c) 2010-2011, Nik Cubrilovic. All rights reserved.
#
# <[email protected]> <http://nikcub.appspot.com>
#
# Licensed under a BSD license. You may obtain a copy of the License at
#
# http://nikcub.appspot.com/bsd-license
#
"""
Buckley - buckley.py
Command line client for buckley
This source file is subject to the new BSD license that is bundled with this
package in the file LICENSE.txt. The license is also available online at the
URL: <http://nikcub.appspot.com/bsd-license.txt>
:copyright: Copyright (C) 2011 Nik Cubrilovic and others, see AUTHORS
:license: new BSD, see LICENSE for more details.
"""
__version__ = '0.2.1'
__author__ = 'Nik Cubrilovic <[email protected]>'
import os
import sys
def main():
print "Buckley v (%s)" % __version__
init_gae()
import buckley
print buckley
def init_gae(path=None):
if not path:
path = '/usr/local/google_appengine'
AE_PATH = os.path.abspath(os.path.realpath(path))
AE_PATHS = [
AE_PATH,
os.path.join(AE_PATH, 'lib', 'antlr3'),
os.path.join(AE_PATH, 'lib', 'fancy_urllib'),
os.path.join(AE_PATH, 'lib', 'django'),
os.path.join(AE_PATH, 'lib', 'ipaddr'),
os.path.join(AE_PATH, 'lib', 'webob'),
os.path.join(AE_PATH, 'lib', 'yaml', 'lib'),
]
sys.path = sys.path + AE_PATHS
if __name__ == '__main__':
main()