Open thedancomplex opened 11 years ago
If your script requires python2, just use:
If your script requires python3, use:
On 04/04/2013 08:20 PM, thedancomplex wrote:
If your script requires python2, just use:
!/usr/bin/env python2
If your script requires python3, use:
!/usr/bin/env python3
This would not work on debian wheezy, though explicitly calling python2.7 / python3.2 will work.
How difficult is it to be compatible with both python2 and python3?
Neil Dantam http://www.cc.gatech.edu/~ndantam3
don't know I will have to talk to rob about it.
-Dan
On Thu, Apr 4, 2013 at 8:23 PM, Neil T. Dantam notifications@github.comwrote:
On 04/04/2013 08:20 PM, thedancomplex wrote:
If your script requires python2, just use:
!/usr/bin/env python2
If your script requires python3, use:
!/usr/bin/env python3
This would not work on debian wheezy, though explicitly calling python2.7 / python3.2 will work.
How difficult is it to be compatible with both python2 and python3?
Neil Dantam http://www.cc.gatech.edu/~ndantam3
— Reply to this email directly or view it on GitHubhttps://github.com/hubo/hubo-ach/issues/22#issuecomment-15932499 .
On Debian Wheezy, /usr/bin/python2 now symlinks to /usr/bin/python2.7 and /usr/bin/python3 symlinks to /usr/bin/python3.2.
change in the top #!/usr/bin/env python so it uses 2.7