[PATCH v1 2/2] python: fix shebangs
Juraj Linkeš
juraj.linkes at pantheon.tech
Wed Apr 27 09:41:52 CEST 2022
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 at 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(-)
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
--
2.20.1
More information about the dts
mailing list