diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-02-28 10:49:13 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-02-28 10:49:13 -0500 |
commit | f931d40c07d039cb1fdb6affeb22ea185e525ee0 (patch) | |
tree | b9df2558dcc5577b2ebc405fa06f26d963a256f0 | |
parent | b303b1faf08dcd6a7d91022716505dc2aaed36e2 (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-x | run.py | 2 | ||||
-rwxr-xr-x | sta.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | #!/usr/bin/python3 | 1 | #!/usr/bin/env python3 |
2 | import sta | 2 | import sta |
3 | 3 | ||
4 | ###################################### | 4 | ###################################### |
@@ -1,4 +1,4 @@ | |||
1 | #!/usr/bin/python3 | 1 | #!/usr/bin/env python3 |
2 | 2 | ||
3 | 3 | ||
4 | ################## | 4 | ################## |