So I am wondering how I can execute an app via the python code but keep the code running?
Here is an example:
File1.py
from time import sleep
print("File1 has started")
sleep(3)
print("File1 has ended")
main.py
from time import sleep
print("main.py has started")
# start the File1.py here
sleep(2)
print("main.py is still running")
sleep(2)
print("main.py has ended")
I want the output to look like this:
>> main.py has started
>> File1 has started
>> main.py is still running
>> File1 has ended
>> main.py has ended
And is it possible to execute the files with the standard app that is assigned to the app? Example:
- If someone has the default program for ".txt" Word, then word should open that file
- If someone has the default program for ".txt" Notepad, then notepad should open that file.
Thanks!