On 11/01/11 00:16, Shawn Walker wrote:
On 10/29/11 00:20, Chris Quenelle wrote:
One really good reason to use /usr/bin/python is because you want
your script
to run unmodified on Ubuntu Linux, Oracle Linux, Solaris 10, Solaris
11 and MacOS.
Except, all of those systems (to my knowledge) do the same thing we do.
I am not sure what context Chris originally referred to. Though when I
do on OEL 6
$ file /usr/bin/* | grep python
I got most a /usr/bin/python script text executable
on b175, when I did the same thing,
I got a mix of
executable /usr/bin/python script
executable /usr/bin/python2.6 script
So I think at OEL 6 (at least) is still using #!/usr/bin/python primarily.
-Ghee
/usr/bin/python is a symlink to the latest (which can be changed to
point to a different version btw, through officially supported
mechanisms) and /usr/bin/python2.x is a specific version.
So I'm uncertain how that would increase portability, unless the
argument is that the script can run against any version of Python that
might be the latest on any of those systems.
But again, this is not the recommended practice.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss