[sandbox 6/6] Don't hardcode interpreter path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
---
 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 -*-
 
 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 <dwalsh@xxxxxxxxxx>
 #
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
 
 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
 
 from gi.repository import LibvirtGObject
 from gi.repository import LibvirtSandbox
diff --git a/examples/virt-sandbox-mkinitrd.py b/examples/virt-sandbox-mkinitrd.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
 
 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
 
 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 <berrange@xxxxxxxxxx>
 #          Eren Yagdiran <erenyagdiran@xxxxxxxxx>
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ècnica de Catalunya.
diff --git a/libvirt-sandbox/image/sources/docker.py b/libvirt-sandbox/image/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ècnica 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
 #
-- 
2.15.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux