Felipe Alarcon

@fandressouza (4) • Programming Mentor Ireland
Running a file other than the main file for Unit Testing
posted to Ask by LeonGrin

In case someone is looking to simply run a file use:

#main.py
import os
os.system('python3 <filename>.py')
Running a file other than the main file for Unit Testing
posted to Ask by LeonGrin

@m201713 make sure you remove "<>", if your file is called second.py you must write the following:

#main.py
import os
os.system('python3 second.py')