From nobody Thu May 15 13:07:29 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1512467652846616.0892263115807; Tue, 5 Dec 2017 01:54:12 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8E4558046E; Tue, 5 Dec 2017 09:54:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6701A18A4B; Tue, 5 Dec 2017 09:54:11 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 30CC6180474A; Tue, 5 Dec 2017 09:54:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id vB59rtdv007358 for ; Tue, 5 Dec 2017 04:53:55 -0500 Received: by smtp.corp.redhat.com (Postfix) id ED6BF60F8B; Tue, 5 Dec 2017 09:53:55 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E48726025B for ; Tue, 5 Dec 2017 09:53:53 +0000 (UTC) Received: from smtp.nue.novell.com (smtp.nue.novell.com [195.135.221.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 632B7C0587DE for ; Tue, 5 Dec 2017 09:53:51 +0000 (UTC) Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Tue, 05 Dec 2017 10:53:49 +0100 Received: from laptop.tf.local (nwb-a10-snat.microfocus.com [10.120.13.202]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Tue, 05 Dec 2017 09:53:28 +0000 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: libvir-list@redhat.com Date: Tue, 5 Dec 2017 10:53:22 +0100 Message-Id: <20171205095322.24258-7-cbosdonnat@suse.com> In-Reply-To: <20171205095322.24258-1-cbosdonnat@suse.com> References: <20171205095322.24258-1-cbosdonnat@suse.com> MIME-Version: 1.0 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 05 Dec 2017 09:53:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 05 Dec 2017 09:53:52 +0000 (UTC) for IP:'195.135.221.5' DOMAIN:'smtp.nue.novell.com' HELO:'smtp.nue.novell.com' FROM:'cbosdonnat@suse.com' RCPT:'' X-RedHat-Spam-Score: -2.301 (RCVD_IN_DNSWL_MED, SPF_PASS) 195.135.221.5 smtp.nue.novell.com 195.135.221.5 smtp.nue.novell.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Subject: [libvirt] [sandbox 6/6] Don't hardcode interpreter path X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 05 Dec 2017 09:54:12 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 This is particularly useful on operating systems that don't ship Python as part of the base system (eg. FreeBSD) while still working just as well as it did before on Linux. Reviewed-by: Daniel P. Berrange --- bin/virt-sandbox-image | 2 +- bin/virt-sandbox-service | 2 +- examples/demo.py | 2 +- examples/shell.py | 2 +- examples/virt-sandbox-mkinitrd.py | 2 +- examples/virt-sandbox.py | 2 +- libvirt-sandbox/image/cli.py | 2 +- libvirt-sandbox/image/sources/base.py | 1 - libvirt-sandbox/image/sources/docker.py | 1 - libvirt-sandbox/image/sources/virtbuilder.py | 1 - 10 files changed, 7 insertions(+), 10 deletions(-) diff --git a/bin/virt-sandbox-image b/bin/virt-sandbox-image index 7e0d76b..61346ef 100755 --- a/bin/virt-sandbox-image +++ b/bin/virt-sandbox-image @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- =20 from libvirt_sandbox.image import cli diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox-service index e78defb..b06f304 100755 --- a/bin/virt-sandbox-service +++ b/bin/virt-sandbox-service @@ -1,4 +1,4 @@ -#!/usr/bin/python -Es +#!/usr/bin/env python3 # # Authors: Dan Walsh # diff --git a/examples/demo.py b/examples/demo.py index 6252194..c61b091 100755 --- a/examples/demo.py +++ b/examples/demo.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 =20 from gi.repository import LibvirtGObject from gi.repository import LibvirtSandbox diff --git a/examples/shell.py b/examples/shell.py index 317d13e..86b2159 100755 --- a/examples/shell.py +++ b/examples/shell.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 =20 from gi.repository import LibvirtGObject from gi.repository import LibvirtSandbox diff --git a/examples/virt-sandbox-mkinitrd.py b/examples/virt-sandbox-mkin= itrd.py index 76df925..74d1b00 100755 --- a/examples/virt-sandbox-mkinitrd.py +++ b/examples/virt-sandbox-mkinitrd.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 =20 from gi.repository import LibvirtGObject from gi.repository import LibvirtSandbox diff --git a/examples/virt-sandbox.py b/examples/virt-sandbox.py index 922ad00..e4ed6e7 100755 --- a/examples/virt-sandbox.py +++ b/examples/virt-sandbox.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 =20 from gi.repository import LibvirtGObject from gi.repository import LibvirtSandbox diff --git a/libvirt-sandbox/image/cli.py b/libvirt-sandbox/image/cli.py index fa3cace..490c5e0 100644 --- a/libvirt-sandbox/image/cli.py +++ b/libvirt-sandbox/image/cli.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -Es +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Authors: Daniel P. Berrange # Eren Yagdiran diff --git a/libvirt-sandbox/image/sources/base.py b/libvirt-sandbox/image/= sources/base.py index e4e4e41..0fc9243 100644 --- a/libvirt-sandbox/image/sources/base.py +++ b/libvirt-sandbox/image/sources/base.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2015 Universitat Polit=C3=A8cnica de Catalunya. diff --git a/libvirt-sandbox/image/sources/docker.py b/libvirt-sandbox/imag= e/sources/docker.py index e979054..eaf41fc 100755 --- a/libvirt-sandbox/image/sources/docker.py +++ b/libvirt-sandbox/image/sources/docker.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2015 Universitat Polit=C3=A8cnica de Catalunya. diff --git a/libvirt-sandbox/image/sources/virtbuilder.py b/libvirt-sandbox= /image/sources/virtbuilder.py index 6bd9695..1b32083 100755 --- a/libvirt-sandbox/image/sources/virtbuilder.py +++ b/libvirt-sandbox/image/sources/virtbuilder.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # # Copyright (C) 2015 SUSE LLC # --=20 2.15.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list