change #!/usr/bin/python to #!/usr/bin/env python

Note that using "whatever version of python the name 'python' maps to in the current shell environment" is more error-prone that specifying which python you mean, such as by executing "/usr/bin/python setup.py" instead of executing "./setup.py".  When you build tahoe (by running "make") it will make a copy of bin/allmydata-tahoe in instdir/bin/allmydata-tahoe with the shebang line rewritten to execute the specific version of python that was used when building instead of to execute "/usr/bin/env python".

However, it seems better that the default for lazy people be "whatever 'python' means currently" instead of "whatever 'python' meant to the manufacturer of your operating system".
This commit is contained in:
Zooko O'Whielacronx 2007-03-29 14:01:28 -07:00
parent fdd8c5cda6
commit 4b4f5bbcba
10 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
from allmydata.scripts import runner
runner.run()

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
import os, sys, pickle

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
from foolscap import Tub
from foolscap.eventual import eventually

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
from distutils.core import setup
from distutils.core import Extension

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
import sha as shamodule
import os, random

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
import random, math, os, re
from twisted.python import usage

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
import os, sys, signal, time
from twisted.python import usage

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
import os, shutil

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
from twisted.trial import unittest
from twisted.internet import defer

View File

@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python
from zope.interface import implements
from twisted.trial.itrial import IReporter