Answers for "open python file in terminal windows"

1

python code to open windows command prompt

import os
def mycmd():
    os.system('cmd /c "ipconfig"')
mycmd()
Posted by: Guest on September-04-2020
0

python open script in new terminal

import subprocess
subprocess.call('python full_pathfile_name.py', creationflags=subprocess.CREATE_NEW_CONSOLE)
Posted by: Guest on May-25-2021

Code answers related to "open python file in terminal windows"

Python Answers by Framework

Browse Popular Code Answers by Language