[PATCH] Always use #!/usr/bin/env python
Damien Lespiau
damien.lespiau at intel.com
Sat Nov 15 12:58:25 AEDT 2014
Hardcoding the path to the python binary breaks virtualenv. virtualenv
creates a special python binary in the path, and specifically using
/usr/bin/python breaks that.
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
apps/patchwork/bin/parsemail.py | 2 +-
apps/patchwork/bin/rehash.py | 2 +-
apps/patchwork/parser.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py
index 2da999c..680528e 100755
--- a/apps/patchwork/bin/parsemail.py
+++ b/apps/patchwork/bin/parsemail.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# Patchwork - automated patch tracking system
# Copyright (C) 2008 Jeremy Kerr <jk at ozlabs.org>
diff --git a/apps/patchwork/bin/rehash.py b/apps/patchwork/bin/rehash.py
index 92cfb20..c44e49b 100755
--- a/apps/patchwork/bin/rehash.py
+++ b/apps/patchwork/bin/rehash.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# Patchwork - automated patch tracking system
# Copyright (C) 2008 Jeremy Kerr <jk at ozlabs.org>
diff --git a/apps/patchwork/parser.py b/apps/patchwork/parser.py
index 8295980..76f409c 100644
--- a/apps/patchwork/parser.py
+++ b/apps/patchwork/parser.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# Patchwork - automated patch tracking system
# Copyright (C) 2008 Jeremy Kerr <jk at ozlabs.org>
--
1.8.3.1
More information about the Patchwork
mailing list