Daniel William
New member
How do I run one Python file from another?
Answer
How can I make one Python file run another?
Answer
How can I make one Python file run another?
- Use it like a module. import the file you want to run and run its functions. …
- You can use the exec command. execfile(‘file.py’) …
- You can spawn a new process using the os. system command.