summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-12-29 15:56:25 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-12-29 15:56:25 -0500
commit9f841c07dff16433fce805111d8ab45ff38ce228 (patch)
tree7336b1d640d5619db044675d49eaa70b956a239e
parent008d59d3d9a933c7bcce81f777989a991c63bbf7 (diff)
Use env hack in python scripts.
-rw-r--r--debian/changelog1
-rw-r--r--doc/bugs/rst_plugin_has_python_hardcode_in_shebang_line.mdwn2
-rwxr-xr-xplugins/pythondemo2
-rwxr-xr-xplugins/rst2
4 files changed, 5 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index dec2423fe..ee6f9adfb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ ikiwiki (3.20091219) UNRELEASED; urgency=low
example sites also used by auto-blog.setup. The example setup file
can be generated at any time using ikiwiki --dumpsetup so I do
not see a reason to ship it. Closes: #562183
+ * Use env hack in python scripts.
-- Joey Hess <joeyh@debian.org> Fri, 25 Dec 2009 14:31:22 -0500
diff --git a/doc/bugs/rst_plugin_has_python_hardcode_in_shebang_line.mdwn b/doc/bugs/rst_plugin_has_python_hardcode_in_shebang_line.mdwn
index f89c76fe8..a594adc09 100644
--- a/doc/bugs/rst_plugin_has_python_hardcode_in_shebang_line.mdwn
+++ b/doc/bugs/rst_plugin_has_python_hardcode_in_shebang_line.mdwn
@@ -11,3 +11,5 @@ Thus I suggest to change the shebang line to:
#!/usr/bin/env python
+> [[done]], although the irony of all the perl hashbangs in ikiwiki
+> being hardcoded doesn't escape me. --[[Joey]]
diff --git a/plugins/pythondemo b/plugins/pythondemo
index c63ce3973..911f4d7d9 100755
--- a/plugins/pythondemo
+++ b/plugins/pythondemo
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# pythondemo — demo Python ikiwiki plugin
diff --git a/plugins/rst b/plugins/rst
index 449dba415..9f64b33a0 100755
--- a/plugins/rst
+++ b/plugins/rst
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# rst — xml-rpc-based ikiwiki plugin to process RST files