[lttng-dev] [PATCH lttng-ust] Fix: Corrected python version assumptions in lttng-gen-tp
jderehag at hotmail.com
jderehag at hotmail.com
Mon Mar 24 10:29:44 EDT 2014
From: Jesper Derehag <jderehag at hotmail.com>
This modification calls the interpreter through env instead of
directly, which should be more portable for those distros which do not install
python into /usr/bin/.
Also, since lttng-gen-tp is not python2 compatible, I changed it to strictly
call python3 which is the recommended way.
See PEP 394.
http://legacy.python.org/dev/peps/pep-0394/
---
tools/lttng-gen-tp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lttng-gen-tp b/tools/lttng-gen-tp
index c49e8a5..c7bf295 100755
--- a/tools/lttng-gen-tp
+++ b/tools/lttng-gen-tp
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
#
# Copyright (c) 2012 Yannick Brosseau <yannick.brosseau at gmail.com>
#
--
1.7.9.5
More information about the lttng-dev
mailing list