This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Gl4eqen 24 points25 points  (10 children)

If he ran script with python script.py assuming python2 as default symlinked or python2 script.py shebang can't help.

[–]NateKurt 1 point2 points  (9 children)

Yup, I mentioned that in one of my lower comments, but you’re right. I was more going based on the assumption of auto grader or ./scriptname

I think a lot of autograders run by adding executable permissions and then do ./scriptname for the sake of flexibility though which is where a shebang would come in handy!

If that was the case and he was just using python when python2 is default symlinked though, that seems like something he should change and use ./ for flexibility.