Closed GoogleCodeExporter closed 9 years ago
+1 this also fails to run "out of the box" on Mac OS X 10.6.7 even though
python is included.
Original comment by csc...@gmail.com
on 7 May 2011 at 4:56
+1 Also more convenient for people who are running multiple versions of python
and use a modified PATH to specify a default, or have installed python in an
alternate location (e.g. their homedir).
Original comment by sumu...@gmail.com
on 8 May 2011 at 4:07
Sure, I can make that change, it should be available for the next release. Just
a question, is "/usr/bin/env python2" good too? I would like to make explicit
that python2 is required, the tool will not run properly in python3 and I would
like to prevent it running in python3 by accident.
Original comment by jor...@google.com
on 10 May 2011 at 1:17
Original comment by jor...@google.com
on 10 May 2011 at 1:23
Changing "#!/usr/bin/python2" for "#!/usr/bin/env python2".
Original comment by jor...@google.com
on 12 May 2011 at 6:54
This was fixed and is available in the svn repository and in the 1.0-beta3
version.
Original comment by jor...@google.com
on 23 May 2011 at 9:37
That didn't fix anything... the problem is that most distros don't have any
python2 executables in the PATH, so "#!/usr/bin/env python2" is as useless as
"#!/usr/bin/python2".
"#!/usr/bin/env python" would work.
Original comment by kekn...@gmail.com
on 24 May 2011 at 4:26
But I really don't want to put a generic python and risk people running it with
python3 by accident. I'll add a script to change all the shebang lines to
whatever you want (and that one will have "#!/usr/bin/env python" by default.
Original comment by jor...@google.com
on 24 May 2011 at 6:56
The script is almost ready, using it you will be able to run:
./tools/update_hashbangs.py -r "/usr/bin/env python" <cmdline_path>
And that will change all the hashbangs to "#!/usr/bin/env python". The script
should be in the svn within a couple of days.
Original comment by jor...@google.com
on 24 May 2011 at 10:26
Original comment by jor...@google.com
on 3 Jun 2011 at 4:07
Original issue reported on code.google.com by
kekn...@gmail.com
on 7 May 2011 at 1:09