Wednesday, June 6, 2012
How to get geany to use python3 as its default
How to get Geany to use Python 3 by as the python version default
After installing geany you want to go into the terminal and enter this:
"sudo <text editor here> /usr/share/geany/filetypes.python"
Doing so will ask for your password and subsequently bring you to a text file for geany's python settings
Go to the bottom of the file and comment out the bottom two lines (Just add a # infront of them)
Now copy paste the following two lines into the bottom of the doccument:
compiler=python3 -c "import py_compile; py_compile.compile('%f')"
After you save it the next time you open your python script in Geany you will be able to run (f5)
and use it as python3 (Assuming that is what you code in)