diff options
| -rwxr-xr-x | main.py | 10 | ||||
| -rwxr-xr-x | repo | 10 |
2 files changed, 2 insertions, 18 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/bin/sh | 1 | #!/usr/bin/env python |
| 2 | # | 2 | # |
| 3 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
| 4 | # | 4 | # |
| @@ -14,14 +14,6 @@ | |||
| 14 | # See the License for the specific language governing permissions and | 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. | 15 | # limitations under the License. |
| 16 | 16 | ||
| 17 | magic='--calling-python-from-/bin/sh--' | ||
| 18 | """exec" python -E "$0" "$@" """#$magic" | ||
| 19 | if __name__ == '__main__': | ||
| 20 | import sys | ||
| 21 | if sys.argv[-1] == '#%s' % magic: | ||
| 22 | del sys.argv[-1] | ||
| 23 | del magic | ||
| 24 | |||
| 25 | import getpass | 17 | import getpass |
| 26 | import imp | 18 | import imp |
| 27 | import netrc | 19 | import netrc |
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/bin/sh | 1 | #!/usr/bin/env python |
| 2 | 2 | ||
| 3 | ## repo default configuration | 3 | ## repo default configuration |
| 4 | ## | 4 | ## |
| @@ -19,14 +19,6 @@ REPO_REV='stable' | |||
| 19 | # See the License for the specific language governing permissions and | 19 | # See the License for the specific language governing permissions and |
| 20 | # limitations under the License. | 20 | # limitations under the License. |
| 21 | 21 | ||
| 22 | magic='--calling-python-from-/bin/sh--' | ||
| 23 | """exec" python -E "$0" "$@" """#$magic" | ||
| 24 | if __name__ == '__main__': | ||
| 25 | import sys | ||
| 26 | if sys.argv[-1] == '#%s' % magic: | ||
| 27 | del sys.argv[-1] | ||
| 28 | del magic | ||
| 29 | |||
| 30 | # increment this whenever we make important changes to this script | 22 | # increment this whenever we make important changes to this script |
| 31 | VERSION = (1, 19) | 23 | VERSION = (1, 19) |
| 32 | 24 | ||
