[11:12] <ikt> heya, say you are coding a program in python 3.1, in ubuntu if you do ./python3program.py it will automatically run as python2.7, is there anyway to change in the program itself to tell ubuntu to run as python 3.1?
[11:18] <nisshh> ikt, on the command line, instead of ./application.py, use: python3.1 application.py
[11:18] <nisshh> that will interpret the app using 3.1
[11:18] <ikt> yeah I don't want that
[11:18] <ikt> for example if I put it onto another computer
[11:18] <ikt> and do ./
[11:18] <ikt> I want it to come out as an error, python3 not installed, not get halfway through the app and then crash :S
[11:19] <nisshh> oh ok
[11:19] <ikt> I can't find much on it :(
[11:19] <nisshh> well unfortunately, what happens is that it will run the app and then exit with a crash when it hits a wall because it cant find 3.1
[11:20] <nisshh> you could include a check in your code to check for a specific version of python
[11:20] <nisshh> ikt, ^^^
[11:21] <nisshh> i cant remember how to do it exactly, gimme a minute
[11:22] <nisshh> ikt, ah, yes, i remember now, its very easy
[11:25] <ikt> ^_^
[11:27] <nisshh> ikt, gimme a sec
[11:34] <nisshh> ikt, this will throw an error if called when the default version of python is < 3.1: http://paste.ubuntu.com/572588/
[11:35] <nisshh> it will work fine if called with 3.1 though
[11:35] <ikt> ah sweet cheers :D
[11:35] <nisshh> np
[11:36] <nisshh> ikt, next time come to: ##general-programming
[11:36] <nisshh> its a little more on topic :)
[11:36] <ikt> oh yea