test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Juraj Linkeš" <juraj.linkes@pantheon.tech>
To: junx.dong@intel.com, lijuan.tu@intel.com, ohilyard@iol.unh.edu
Cc: dts@dpdk.org, "Juraj Linkeš" <juraj.linkes@pantheon.tech>
Subject: [PATCH v1 2/2] python: fix shebangs
Date: Wed, 27 Apr 2022 07:41:52 +0000	[thread overview]
Message-ID: <20220427074152.4144881-2-juraj.linkes@pantheon.tech> (raw)
In-Reply-To: <20220427074152.4144881-1-juraj.linkes@pantheon.tech>

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(-)

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


  reply	other threads:[~2022-04-27  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-27  7:41 [PATCH v1 1/2] stats_reporter: properly use iterable in for cycle Juraj Linkeš
2022-04-27  7:41 ` Juraj Linkeš [this message]
2022-04-28  3:15 ` Dong, JunX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220427074152.4144881-2-juraj.linkes@pantheon.tech \
    --to=juraj.linkes@pantheon.tech \
    --cc=dts@dpdk.org \
    --cc=junx.dong@intel.com \
    --cc=lijuan.tu@intel.com \
    --cc=ohilyard@iol.unh.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).