python / python3 shebang question

More
27 Aug 2021 03:36 #218850 by robertspark
I was wondering.....

I had some problems with linuxcnc when I used buildbot to upgrade from 2.8.x to master....

the problems I had were various python files that were not happy.... I know that there has been some frantic work to correct some of the changes from python 2 to python 3.....

however... I noticed (as I'm looking at some files in git) that although the changes to python 3 are being made the shebang (#!) is still pointing to python and not python3
just wondering if this would have an effect on say debian buster where python2 will still be required alongside python 3......

should the shebangs (path to python env) not be changed from python to python3

Please Log in or Create an account to join the conversation.

More
27 Aug 2021 13:05 #218905 by cmorley
The shebang is only relevant if the file is executed directly.
This should explain it better:
stackoverflow.com/questions/6908143/shou...-form-should-it-take

Please Log in or Create an account to join the conversation.

Time to create page: 0.111 seconds
Powered by Kunena Forum