diff options
author | Bryan Henry <bryanhenry@google.com> | 2018-04-16 17:25:37 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-04-16 17:25:37 -0700 |
commit | 80dd642e53257a329c6220dae4c3e3a23899c34d (patch) | |
tree | 1f8d766ed8dfe8439564356e1131f83690f823e5 | |
parent | cb05c54cae193110cc33a4e16f271ca596ae4406 (diff) | |
parent | b4d7de5b3658155ffdbc95de4b67ecc3fb185d13 (diff) | |
download | bpt-80dd642e53257a329c6220dae4c3e3a23899c34d.tar.gz |
Change bpttool Python shebang line to use /usr/bin/env
am: b4d7de5b36
Change-Id: Ia772968c91e7d23c326620841c4d0ceb28626153
-rwxr-xr-x | bpttool | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Copyright 2016, The Android Open Source Project # @@ -28,6 +28,10 @@ import sys import uuid import zlib +# Python 2.6 required for modern exception syntax +if sys.hexversion < 0x02060000: + print >> sys.stderr, "Python 2.6 or newer is required." + sys.exit(1) # Keywords used in JSON files. JSON_KEYWORD_SETTINGS = 'settings' |