script portability trick
Russ
18k11tm001 at sneakemail.com
Thu Jan 17 15:03:19 EST 2002
A traditional unix trick in Tcl/Tk is to start scripts like this:
#!/bin/sh
# the next line starts wish \
exec wish "$0" "$@"
This causes the Bourne shell to search the user's executable path to
find wish each time the script is executed. Because the script doesn't
depend on wish being in a particular directory, it is more portable
(sh is almost always in /bin, but wish can be anywhere).
Is there a similar trick for Python? Thanks.
More information about the Python-list
mailing list