From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B723A050F; Wed, 27 Apr 2022 09:41:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8541A4113F; Wed, 27 Apr 2022 09:41:56 +0200 (CEST) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 395B540E78 for ; Wed, 27 Apr 2022 09:41:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id 28E871C81D6; Wed, 27 Apr 2022 09:41:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yRQnsosomGBa; Wed, 27 Apr 2022 09:41:53 +0200 (CEST) Received: from entguard.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id E30EA1C81D4; Wed, 27 Apr 2022 09:41:52 +0200 (CEST) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: junx.dong@intel.com, lijuan.tu@intel.com, ohilyard@iol.unh.edu Cc: dts@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v1 2/2] python: fix shebangs Date: Wed, 27 Apr 2022 07:41:52 +0000 Message-Id: <20220427074152.4144881-2-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220427074152.4144881-1-juraj.linkes@pantheon.tech> References: <20220427074152.4144881-1-juraj.linkes@pantheon.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 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š --- 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