2010/11/13 Eric Blake <eblake@xxxxxxxxxx>: > On 11/13/2010 08:53 AM, Matthias Bolte wrote: >> 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. >> --- >> Âexamples/python/dominfo.py  Â|  Â2 +- >> Âexamples/python/domrestore.py |  Â2 +- >> Âexamples/python/domsave.py  Â|  Â2 +- >> Âexamples/python/domstart.py  |  Â2 +- >> Âexamples/python/esxlist.py  Â|  Â2 +- >> Âpython/generator.py      |  Â2 +- >> Âpython/libvirt-override.py  Â|  Â5 +++++ >> Âsrc/esx/esx_vi_generator.py  |  Â2 +- >> Â8 files changed, 12 insertions(+), 7 deletions(-) >> >> diff --git a/examples/python/dominfo.py b/examples/python/dominfo.py >> index e41709c..2f250e7 100755 >> --- a/examples/python/dominfo.py >> +++ b/examples/python/dominfo.py >> @@ -1,4 +1,4 @@ >> -#! /usr/bin/python >> +#!/usr/bin/env python > > ACK. ÂIt still assumes a hard-coded location, but /usr/bin/env is more > likely to exist on all platforms, regardless of where python was > installed. ÂIt's a shame that #! lines are so limited, and portably take > only one argument, which is now "python". > Thanks, pushed. Matthias -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list