Python Forum
how to run a series of py scripts
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to run a series of py scripts
#1
Hi Just starting out on the python path and would like to know the best way to run all the 4 steps below in one operation (batch file in my day)

1. pip3 install tensorflow pandas numpy matplotlib yahoo_fin sklearn
2. script1.py # if successful continue else display error and skip following scripts
3. script2.py # if successful continue else display error and skip following script
4. script3.py

Thanks for any help
Reply
#2
create a master python script that dispatches the other scripts
Reply
#3
Thanks Larz, went of and Googled your suggestion, found:
https://stackoverflow.com/questions/2459...sing-batch
Will include a log file to keep track of success or fail of each step and will read that at beginning of each prog.py so I know if to continue or not.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert quarterly time series to monthly time series donnertrud 1 5,103 May-22-2020, 10:16 AM
Last Post: pyzyx3qwerty

Forum Jump:

User Panel Messages

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