I have several python scripts such as test1.py
, test2.py
. These scripts do not contain any functions or a modules but simple pandas scripts. I want to run both test1.py
, test2.py
from a single file such as test3.py
. So that I just need to run test3.py
and not other files. What steps do I need to follow to achieve this? This question is different from other questions because I don't want to use modules import functionality since my scripts do not have functions in it.
Asked
Active
Viewed 62 times
0

SarwatFatimaM
- 315
- 1
- 3
- 13
-
1Sounds like a job for a shell script, or GNU parallel: `parallel python ::: test1.py test2.py test3.py` Or you could use `subprocess` module. – juanpa.arrivillaga Mar 31 '17 at 06:47
-
you also might want to check out runpy – Arco Bast Mar 31 '17 at 13:50
-
Addressing your edit. Importing a script, runs it.... – Stephen Rauch Apr 02 '17 at 02:29