Use python in path rather than hardcoding /usr/bin/python

This reverts two commits:

5104669795
f91523197f

The change was originally made for unknown reasons: it was requested
through a RHEL bug that didn't have any justification and I just changed
it in ignorance:

https://bugzilla.redhat.com/show_bug.cgi?id=708181

But it causes issues on freebsd where apparently python is installed
into /usr/local/bin/python by default:

https://www.redhat.com/archives/virt-tools-list/2012-July/msg00131.html
This commit is contained in:
Cole Robinson 2012-07-19 15:22:30 -04:00
parent 8bfad3a2cc
commit 30282a1709
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
exec /usr/bin/python "::PYTHONDIR::/::PACKAGE::.py"
exec python "::PYTHONDIR::/::PACKAGE::.py"

View File

@ -1,3 +1,3 @@
#!/bin/sh
exec /usr/bin/python "::PYTHONDIR::/::PACKAGE::.py" "$@"
exec python "::PYTHONDIR::/::PACKAGE::.py" "$@"

View File

@ -1,3 +1,3 @@
#!/bin/sh
exec /usr/bin/python "::PYTHONDIR::/::PACKAGE::.py" "$@"
exec python "::PYTHONDIR::/::PACKAGE::.py" "$@"