Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run python script
#1
Hi

Newbie here. I have searched for this but cannot see an answer, apologies if I've missed something...

I'm currently learning python but am running a script someone has created each day.

The way they've told me to run the script (laptop/windows) is to go into the cmd line and then to locate the programme eg by typing cd desktop then cd folder_name and continue for each subfolder

Then to python programme_name.py and return

This feels a bit long winded

I've opened up the programme_name.py file directly and pressed return and then it (appears to) run ok.

Is this the best way of executing the code (ie rather than via cmd line)?
Reply


Messages In This Thread
Run python script - by AndyDD_UK - Jan-18-2018, 10:41 AM
RE: Run python script - by buran - Jan-18-2018, 10:46 AM
RE: Run python script - by AndyDD_UK - Jan-18-2018, 10:51 AM
RE: Run python script - by buran - Jan-18-2018, 11:29 AM
RE: Run python script - by AndyDD_UK - Jan-18-2018, 11:32 AM
RE: Run python script - by buran - Jan-18-2018, 11:55 AM
RE: Run python script - by AndyDD_UK - Jan-18-2018, 12:15 PM
RE: Run python script - by snippsat - Jan-18-2018, 01:28 PM
RE: Run python script - by buran - Jan-18-2018, 02:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,390 Jun-29-2023, 11:57 AM
Last Post: gologica
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,978 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,333 May-28-2020, 05:27 PM
Last Post: micseydel
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,648 May-11-2019, 08:12 PM
Last Post: keames
  How to run python script which has dependent python script in another folder? PrateekG 1 3,181 May-23-2018, 04:50 PM
Last Post: snippsat
  How to call one python script and use its output in another python script lravikumarvsp 3 32,478 May-16-2018, 02:08 AM
Last Post: lravikumarvsp
  Check Python version from inside script? Run Pythons script in v2 compatibility mode? pstein 2 9,873 Jul-07-2017, 08:59 AM
Last Post: snippsat
  Cant pass corect variables to python script in bash script neradp 3 6,245 Nov-05-2016, 01:26 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020