Page 1 of 1

Unable to open PYTHON scripts on MINT 13?

Posted: Thu Dec 06, 2012 5:41 pm
by JaZZyCooL
hello guys,
I just installed my linux mint 13 and made my first python program on mint, but I am unable to open python scripts. I don't know why? I tried each and every possible way but still unable to open the stuff. Can you guys help me out solve the problem.?

I tried "./python.py" also added directory to the python console and also to the linux terminal but still unable to open up.

Re: Unable to open PYTHON scripts on MINT 13?

Posted: Thu Dec 06, 2012 5:56 pm
by overthetop
Are you trying to view/edit the file or run it?

Re: Unable to open PYTHON scripts on MINT 13?

Posted: Sat Dec 08, 2012 2:52 am
by JaZZyCooL
No I am trying to run the file.

Re: Unable to open PYTHON scripts on MINT 13?

Posted: Tue Dec 11, 2012 3:11 pm
by overthetop
Sorry it took so long to get back to you.

What output is the terminal giving you?

Open the terminal in the directory containing your python script and run the following:

Code: Select all

python filename
Be sure to replace filename with the name of your script file.

You can also run your script like this:

Code: Select all

./filename
if you add the line #!/usr/bin/env python to the top of your python file and then make it executable(see this on how to make a file executable).