Skip to content

How to import subprocess in Python?

import subprocess
subprocess.call(['python', 'hello.py'])
See also  Python code snippet - How to import a all the modules in a packege ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.