summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2009-02-28 10:49:13 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2009-02-28 10:49:13 -0500
commitf931d40c07d039cb1fdb6affeb22ea185e525ee0 (patch)
treeb9df2558dcc5577b2ebc405fa06f26d963a256f0
parentb303b1faf08dcd6a7d91022716505dc2aaed36e2 (diff)
[Portability] Do not rely on /usr/bin/python3.
The python3 interpreter could also be located elsewhere. Use the /usr/bin/env utility to find a python 3 interpreter somewhere in the path. (Without this patch, the code doesn't run on OS X + macports.)
-rwxr-xr-xrun.py2
-rwxr-xr-xsta.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/run.py b/run.py
index 0a058c5..5533c9f 100755
--- a/run.py
+++ b/run.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python3 1#!/usr/bin/env python3
2import sta 2import sta
3 3
4###################################### 4######################################
diff --git a/sta.py b/sta.py
index 34ed2f1..b854aa6 100755
--- a/sta.py
+++ b/sta.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python3 1#!/usr/bin/env python3
2 2
3 3
4################## 4##################