Reputation:
I have a Python Script (which runs for about 6 days and generates multiple other files and folders).
I have multiple data-sets and need to run this Python Script on each data-set.
The data-sets have their similar names and are in completely separate locations in the drive which I shall not mixup, so no worries on this, neither can I accept an answer which involves bringing these in the same folder.
I need to run the Python Script one after the other for each Data-Set ensuring all computer resources are available during each run.
For this I thought the following code would work:
from os import system
system('python "E:\\Test and delete\\2\\MainPythonFile.py" "E:/Test and delete/1/MainPythonFile.py"')
However, only the first file is being executed!
I can find no simple solution which would enable me to execute all the files sequentially.
Upvotes: 0
Views: 230