Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    I appreciate that what I want to do is counter to what would be considered good practice. What you've posted is entirely reasonable, but at the same time it is not what I am asking for. I do not want my users to have to explicitly point my script at the appropriate version of Python when it is perfectly possible to detect the appropriate version of Python in all situations I care about. Commented Feb 26, 2013 at 21:56
  • 1
    Please see my update for why I cannot "just check inside of it if it is run in Python 2.4 and print some info and exit." Commented Feb 27, 2013 at 18:24
  • You are right. I just found this question on SO and now I can see that there is no option to do that if you want to have just one file... Commented Feb 27, 2013 at 21:41