[v1,2/2] python: fix shebangs

Message ID 20220427074152.4144881-2-juraj.linkes@pantheon.tech (mailing list archive)
State Accepted
Headers
Series [v1,1/2] stats_reporter: properly use iterable in for cycle |

Checks

Context Check Description
ci/Intel-dts-pylama-test fail Testing issues
ci/Intel-dts-format-test fail Testing issues
ci/Intel-dts-suite-test success Testing OK

Commit Message

Juraj Linkeš April 27, 2022, 7:41 a.m. UTC
Remove shebangs in __init__.py files as they're not supposed to be
executed.
Modify the other shebangs so that virtualenvs can be used.

Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
 dep/__init__.py              | 1 -
 framework/__init__.py        | 1 -
 main.py                      | 2 +-
 nics/__init__.py             | 1 -
 tests/__init__.py            | 1 -
 tools/__init__.py            | 1 -
 vm_images/create_vm_image.py | 2 +-
 7 files changed, 2 insertions(+), 7 deletions(-)
  

Patch

diff --git a/dep/__init__.py b/dep/__init__.py
index ae0043b7..412dbab4 100644
--- a/dep/__init__.py
+++ b/dep/__init__.py
@@ -1,4 +1,3 @@ 
-#!/usr/bin/python3
 # BSD LICENSE
 #
 # Copyright (c) 2021 PANTHEON.tech s.r.o.
diff --git a/framework/__init__.py b/framework/__init__.py
index ae0043b7..412dbab4 100644
--- a/framework/__init__.py
+++ b/framework/__init__.py
@@ -1,4 +1,3 @@ 
-#!/usr/bin/python3
 # BSD LICENSE
 #
 # Copyright (c) 2021 PANTHEON.tech s.r.o.
diff --git a/main.py b/main.py
index f4f5e03a..b625cecf 100755
--- a/main.py
+++ b/main.py
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # BSD LICENSE
 #
 # Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
diff --git a/nics/__init__.py b/nics/__init__.py
index ae0043b7..412dbab4 100644
--- a/nics/__init__.py
+++ b/nics/__init__.py
@@ -1,4 +1,3 @@ 
-#!/usr/bin/python3
 # BSD LICENSE
 #
 # Copyright (c) 2021 PANTHEON.tech s.r.o.
diff --git a/tests/__init__.py b/tests/__init__.py
index ae0043b7..412dbab4 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,4 +1,3 @@ 
-#!/usr/bin/python3
 # BSD LICENSE
 #
 # Copyright (c) 2021 PANTHEON.tech s.r.o.
diff --git a/tools/__init__.py b/tools/__init__.py
index ae0043b7..412dbab4 100644
--- a/tools/__init__.py
+++ b/tools/__init__.py
@@ -1,4 +1,3 @@ 
-#!/usr/bin/python3
 # BSD LICENSE
 #
 # Copyright (c) 2021 PANTHEON.tech s.r.o.
diff --git a/vm_images/create_vm_image.py b/vm_images/create_vm_image.py
index 221477bb..4be9630d 100755
--- a/vm_images/create_vm_image.py
+++ b/vm_images/create_vm_image.py
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 import argparse
 import enum