Python Forum

Full Version: how to run a series of py scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
create a master python script that dispatches the other scripts
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.