hubo / hubo-ach

Low level controller for the Hubo 2 and Hubo 2+ platforms designed by Daniel M. Lofaro. The system is based on the IPC called ACH by Neil Dantam and Mike Stilman.
Other
5 stars 18 forks source link

make use python 2.7 and not 3 #22

Open thedancomplex opened 11 years ago

thedancomplex commented 11 years ago

change in the top #!/usr/bin/env python so it uses 2.7

thedancomplex commented 11 years ago

If your script requires python2, just use:

!/usr/bin/env python2

If your script requires python3, use:

!/usr/bin/env python3

ndantam commented 11 years ago

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

thedancomplex commented 11 years ago

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 .

ndantam commented 10 years ago

On Debian Wheezy, /usr/bin/python2 now symlinks to /usr/bin/python2.7 and /usr/bin/python3 symlinks to /usr/bin/python3.2.