diff options
Diffstat (limited to 'scripts/app-setup')
-rwxr-xr-x | scripts/app-setup | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/app-setup b/scripts/app-setup new file mode 100755 index 0000000..4996537 --- /dev/null +++ b/scripts/app-setup @@ -0,0 +1,18 @@ +#!/usr/bin/env python +import os +import sys + +try: + here = __file__ +except NameError: + # Python 2.2 + here = sys.argv[0] + +relative_wsgikit = os.path.join( + os.path.dirname(os.path.dirname(os.path.abspath(here))), 'wsgikit') + +if os.path.exists(relative_wsgikit): + sys.path.insert(0, os.path.dirname(relative_wsgikit)) + +from wsgikit import app_setup +sys.exit(app_setup.run(sys.argv)) |