mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-22 20:59:34 +03:00
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:
@ -1010,7 +1010,7 @@ def buildWrappers():
|
||||
classes = open("libvirt.py", "w")
|
||||
|
||||
extra = open(os.path.join(srcPref,"libvirt-override.py"), "r")
|
||||
classes.write("#!/usr/bin/python -i\n")
|
||||
classes.write("#!/usr/bin/env python\n")
|
||||
classes.write("#\n")
|
||||
classes.write("# WARNING WARNING WARNING WARNING\n")
|
||||
classes.write("#\n")
|
||||
|
Reference in New Issue
Block a user