SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: Linux_Newbi on March 08, 2014, 03:01:36 PM

Title: running python
Post by: Linux_Newbi on March 08, 2014, 03:01:36 PM
Hi, me again.

On most previous distros i have used python works out the box, save as .py, click on it to run, and thats all, however this dosent seem to happen here, my files will only open in leafpad, even when i tell them to open with python. Do i need to install somethin more or am i doing something wrong? files are written in notepad ++ running in wine and in linux geany.

thank you
Title: Re: running python
Post by: pavroo on March 08, 2014, 03:14:04 PM
Hi

Did you check does the file.py have executive rights?
Title: Re: running python
Post by: Linux_Newbi on March 08, 2014, 09:42:06 PM
Um, no, how do I do that?
Title: Re: running python
Post by: pavroo on March 08, 2014, 10:15:48 PM
Right click on the file.py -> Properties -> Permissions -> Program: Allow this file to run as a program <- it has to be marked.
Title: Re: running python
Post by: Linux_Newbi on March 08, 2014, 10:18:37 PM
K, thx