Change bpttool Python shebang line to use /usr/bin/env am: b4d7de5b36
am: 80dd642e53

Change-Id: If1c8ef6734c13d7c16654f06e99b33f2e3cefc7d
diff --git a/bpttool b/bpttool
index ae4bc8e..3a4b269 100755
--- a/bpttool
+++ b/bpttool
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright 2016, The Android Open Source Project
 #
@@ -28,6 +28,10 @@
 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'