diff options
author | David Brown <david.brown@linaro.org> | 2016-12-21 15:45:06 -0700 |
---|---|---|
committer | David Brown <david.brown@linaro.org> | 2017-01-12 10:28:17 -0700 |
commit | 016e7b2de69c7fa35d55df22ecb9461cc40eda73 (patch) | |
tree | 31fe437209ac2c90d6d95e8a99e91d87434adace /samples/legacy | |
parent | 8405ce13a1c0b4cff9f7da040256ffd3a617f896 (diff) |
samples: task_profiler: Be explicit about python
Update these scripts to explicitly call out python version 2. Some
distributions have started making /usr/bin/python version 3, and other
distros have expressed a desire to do the same.
Also use the
#!/usr/bin/env python2
construct instead of an explicit path so that the user can more easily
use their own python install by just placing it earlier in the path
Jira: ZEP-1548
Change-Id: I36dccc652353ba8bd58c483dba3ce61d3643de00
Signed-off-by: David Brown <david.brown@linaro.org>
Diffstat (limited to 'samples/legacy')
6 files changed, 6 insertions, 6 deletions
diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py index 74920dd80..b9ca3cf93 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Copyright (c) 2016 Intel Corporation. diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py index b08df3f45..3b11568db 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Copyright (c) 2016 Intel Corporation. diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py index 06d73fc90..08e4006bc 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Copyright (c) 2016 Intel Corporation. diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py index 262a13dab..f266cb7a6 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Copyright (c) 2016 Intel Corporation. diff --git a/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py b/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py index bbf7c6156..841cd76d1 100755 --- a/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py +++ b/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Copyright (c) 2016 Intel Corporation. diff --git a/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py b/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py index 23b88862c..4c6e6955d 100755 --- a/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py +++ b/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Copyright (c) 2016 Intel Corporation. |