patman: Do not hardcode python path
authorMichal Simek <michal.simek@xilinx.com>
Mon, 6 May 2013 04:11:58 +0000 (04:11 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 9 May 2013 21:27:41 +0000 (14:27 -0700)
Patman requires python 2.7.4 to run but it doesn't
need to be placed in /usr/bin/python.
Use env to ensure that the interpreter used is
the first one on environment's $PATH on system
with several versions of Python installed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@ti.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/patman/patman.py

index a8061a9372181d99db5d48e26bf9ac06f74d8138..7a317c5c25d97e38f8970361fc3178af9c8423f4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Copyright (c) 2011 The Chromium OS Authors.
 #