Feb-20-2019, 07:14 PM
I have the following code in a file "hello.py":
#!/usr/bin/python3
import os
import time
os.system("x-terminal-emulator -e /bin/bash")
var = input("Please enter your name: ")
print("You entered " + str(var))
time.sleep(5)
os._exit(1)
I would like to run the script in the spawned terminal. I have searched google and the forums and have no answer. Any help would be appreciated.
#!/usr/bin/python3
import os
import time
os.system("x-terminal-emulator -e /bin/bash")
var = input("Please enter your name: ")
print("You entered " + str(var))
time.sleep(5)
os._exit(1)
I would like to run the script in the spawned terminal. I have searched google and the forums and have no answer. Any help would be appreciated.