repost bug: rst plugin has python hardcode in shebang line

master
http://weakish.pigro.net/ 2009-12-27 07:18:30 +00:00 committed by Joey Hess
parent ffc9f25e73
commit 3bff312697
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Current the rst plugin uses this shebang line:
#!/usr/bin/python
The problem is that rst plugin uses some feature (for example, iterator comprehension) which is unavailable on old version of Python.
So rst plugin will not work on a machine which has an old version of python in system path even though
the user have installed a new version of python in other place. For example, I am using ikiwiki with the rst plugin on Mac OS X 10.4 which ships python 2.3 but I do have python2.6 installed on /opt/local/bin/python (via macports).
Thus I suggest to change the shebang line to:
#!/usr/bin/env python