Author Topic: running python  (Read 522 times)

Offline Linux_Newbi

  • Newbie
  • *
  • Posts: 45
running python
« 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
« Last Edit: March 08, 2014, 03:01:36 pm by 272 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1456
    • SparkyLinux
Re: running python
« Reply #1 on: March 08, 2014, 03:14:04 pm »
Hi

Did you check does the file.py have executive rights?
« Last Edit: July 01, 2014, 12:56:10 am by 14 »
Nothing is easy as it looks.

Offline Linux_Newbi

  • Newbie
  • *
  • Posts: 45
Re: running python
« Reply #2 on: March 08, 2014, 09:42:06 pm »
Um, no, how do I do that?
« Last Edit: July 01, 2014, 12:55:51 am by 272 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1456
    • SparkyLinux
Re: running python
« Reply #3 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.
« Last Edit: July 01, 2014, 12:55:33 am by 14 »
Nothing is easy as it looks.

Offline Linux_Newbi

  • Newbie
  • *
  • Posts: 45
Re: running python
« Reply #4 on: March 08, 2014, 10:18:37 pm »
K, thx
« Last Edit: July 01, 2014, 12:55:13 am by 272 »