diff options
author | clutton <clutton@zoho.com> | 2016-04-14 22:33:21 +0300 |
---|---|---|
committer | clutton <clutton@zoho.com> | 2016-04-14 22:33:21 +0300 |
commit | 7dfb29db81c7a07bfaefd148258c6a897e8bac1b (patch) | |
tree | fe4ea88adc063545bd34b0dbd124fd1bc769b44c /include_server/run.py | |
parent | 50e5b666d85c92a963ed6c1d4150683e87b8b9a5 (diff) | |
download | distcc-git-python3.tar.gz |
include_server python(3) readypython3
Diffstat (limited to 'include_server/run.py')
-rwxr-xr-x | include_server/run.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include_server/run.py b/include_server/run.py index 5580d68..d2cacca 100755 --- a/include_server/run.py +++ b/include_server/run.py @@ -1,4 +1,4 @@ -#! /usr/bin/python2.4 +#! /usr/bin/env python3 # Copyright 2007 Google Inc. # @@ -48,20 +48,20 @@ Examples: From anywhere: # Start include server. /home/distcc/include_server/run.py include_server.py - + In the include_server directory: # Run include_server tests. ./run.py include_server_test.py # Pycheck include_server. - ./run.py `which pychecker` include_server.py + ./run.py `which pychecker` include_server.py In installed distcc-pump: # See 'pump' script. - $include_server_location/run.py --run_in_install include_server.py .. + $include_server_location/run.py --run_in_install include_server.py .. """ def usage(): - print USAGE + print(USAGE) sys.exit(1) DEFAULT_PATH = "c_extensions/build/lib.*/*" @@ -91,7 +91,7 @@ else: sys.exit("More than one extension module found. " + " Cannot determine which one to use.") lib_directory = os.path.dirname(potential_libs[0]) - print "__________Using Python extension in %s" % lib_directory + print("__________Using Python extension in %s" % lib_directory) # Now, the all important change to PYTHONPATH. Note that we obliterate any # environmental setting setting as well. This improves performance in @@ -101,7 +101,6 @@ os.environ['PYTHONPATH'] = lib_directory try: os.execv(os.path.join(directory, sys.argv[1]), sys.argv[1:]) except OSError: - print >> sys.stderr, ( - "Could not run: '%s' with arguments: %s" % + print("Could not run: '%s' with arguments: %s" % (os.path.join(directory, sys.argv[1]), - sys.argv[1:])) + sys.argv[1:]), file=sys.stderr) |