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