Use python discovered through env instead of hardcoding a path

This is more flexible regarding the location of the python binary
but doesn't allow to pass the -u flag. The -i flag can be passed
from inside the script using the PYTHONINSPECT env variable.

This fixes a problem with the esx_vi_generator.py on FreeBSD.
This commit is contained in:
Matthias Bolte
2010-11-13 16:34:57 +01:00
parent f76c6dde2e
commit e4384459c9
8 changed files with 12 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# dominfo - print some information about a domain
import libvirt

View File

@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# domstart - make sure a given domU is running, if not start it
import libvirt

View File

@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# domstart - make sure a given domU is running, if not start it
import libvirt

View File

@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# domstart - make sure a given domU is running, if not start it
import libvirt

View File

@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# esxlist - list active domains of an ESX host and print some info.
# also demonstrates how to use the libvirt.openAuth() method