author | Antonio Lima <anto87@gmail.com> | 2011-10-05 08:24:32 (UTC) |
---|---|---|
committer | Antonio Lima <anto87@gmail.com> | 2011-10-05 08:24:32 (UTC) |
commit | 2a98e81b954ab84efc8d3f4e1d837bf190f77d7d (patch) (side-by-side diff) | |
tree | 8aa49a97a01d40737fbd8fa5c1f519f7a26d607b /scripts/builder/main.py | |
parent | 3065be1b71e4c40428cfa192de560c970ba7f8b3 (diff) | |
download | clipperz-2a98e81b954ab84efc8d3f4e1d837bf190f77d7d.zip clipperz-2a98e81b954ab84efc8d3f4e1d837bf190f77d7d.tar.gz clipperz-2a98e81b954ab84efc8d3f4e1d837bf190f77d7d.tar.bz2 |
Fixing python path of builder scripts for environment support
-rwxr-xr-x | scripts/builder/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/builder/main.py b/scripts/builder/main.py index ba0c72a..94f738f 100755 --- a/scripts/builder/main.py +++ b/scripts/builder/main.py @@ -1,25 +1,25 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: UTF-8 -*- import sys, os, json import shutil import pprint import frontendBuilder import codecs import itertools from collections import deque from phpBuilder import PhpBuilder from pythonBuilder import PythonBuilder pp = pprint.PrettyPrinter(indent=4, depth=4) #-------------------------------------------------------------------- def scriptDir (): return os.path.dirname(sys.argv[0]) def projectBaseDir (): return os.path.abspath(scriptDir() + '/../..') def projectTargetDir(): @@ -142,25 +142,25 @@ def main (): if parameter == "--backends": settings['backends'] = values elif parameter == "--frontends": settings['frontends'] = values parameters = deque(itertools.dropwhile(lambda x: not x.startswith('--'), parameters)) if parameters: parameter = parameters.popleft() else: parameter = None if (not settings.has_key('versions')): usage("missing 'versions'") if (not settings.has_key('frontends')): usage("missing 'frontends'") if (not settings.has_key('backends')): usage("missing 'backends'") build (settings) if __name__ == "__main__": - main()
\ No newline at end of file + main() |