moinsetup

Change of moinsetup.py

69:abc9177c5435
moinsetup.py
     1.1 --- a/moinsetup.py	Thu Jan 10 22:06:27 2013 +0100
     1.2 +++ b/moinsetup.py	Thu Jan 10 22:07:27 2013 +0100
     1.3 @@ -950,6 +950,7 @@
     1.4          status("Editing moin script at %s..." % moin_script)
     1.5  
     1.6          s = readfile(moin_script)
     1.7 +        s = s.replace("#!/usr/bin/env python", "#!%s" % sys.executable)
     1.8          s = s.replace("#import sys", "import sys\nsys.path.insert(0, %r)" % self.prefix_site_packages)
     1.9  
    1.10          writefile(moin_script, s)
    1.11 @@ -974,6 +975,7 @@
    1.12          status("Editing moin.cgi script from %s, writing to %s..." % (moin_cgi, moin_cgi_installed))
    1.13  
    1.14          s = readfile(moin_cgi)
    1.15 +        s = s.replace("#!/usr/bin/env python", "#!%s" % sys.executable)
    1.16          s = moin_cgi_prefix.sub("sys.path.insert(0, %r)" % self.prefix_site_packages, s)
    1.17          s = moin_cgi_wikiconfig.sub("sys.path.insert(0, %r)" % self.common_dir, s)
    1.18