Permalink
Browse files

python: Make sure we specify python2

* python3 causes extensive errors
* the python2 binary exists on all of
  my test systems (even when python3
  isn't installed)
* solves gh issue #58
  • Loading branch information...
1 parent e766cdf commit 97c1b2e4e1808ae9a8784b6a3e04c05d66982206 @kallisti5 kallisti5 committed Jan 17, 2013
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Cherokee CLI configuration conversion
#
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- coding: utf-8; mode: python -*-
#
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- coding: utf-8; mode: python -*-
#
View
@@ -554,7 +554,7 @@ check_for_python (void)
int re;
pid_t pid;
int exitcode = -1;
- char const *args[] = {"env", "python", "-c", "raise SystemExit", NULL};
+ char const *args[] = {"env", "python2", "-c", "raise SystemExit", NULL};
pid = fork();
if (pid == -1) {
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
##
## Cherokee trace colorizer
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""
asciidoc - converts an AsciiDoc text file to DocBook, HTML or LinuxDoc
@@ -218,7 +218,7 @@ the server name and prepare a database accessible with the parameters
detailed above (database name, user parameters and so on).
--------------------------------------
-#!/usr/bin/env python
+#!/usr/bin/env python2
import urllib
sql="SELECT * FROM my_table;"
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Cherokee Doc: Image checker
#
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Cherokee Doc: Link checker
#
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Cherokee POTFILES.in generator
#
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Cherokee PO stats
View
@@ -34,7 +34,7 @@
Example usage:
- #!/usr/bin/env python
+ #!/usr/bin/env python2
from myapplication import app # Assume app is your WSGI application object
from fcgi import WSGIServer
WSGIServer(app).run()
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Cherokee QA Tests

0 comments on commit 97c1b2e

Please sign in to comment.