# This program uses the subprocess module's Popen function to launch programs

import subprocess

# Launching Other Programs from Python
calcProc = subprocess.Popen('/usr/bin/gnome-calculator')
print(calcProc.poll() is None)
print(calcProc.wait())
print(calcProc.poll())

# Passing Command Line Arguments to Popen()
subprocess.Popen(['/usr/bin/gedit', '/home/jose/Documents/Notepad.py'])  # Using Ubuntu 18.04

@@ -403,8 +403,227 @@
 u 18.04%0A
+%0A# Running Other Python Scripts%0Asubprocess.Popen(%5B'/usr/bin/python3',%0A                  '/home/jose/PycharmProjects/python-tutorials/books/'%0A                  'AutomateTheBoringStuffWithPython/Chapter01/P02_hello.py'%5D)%0A

Update P08_popenFunction added running other python scripts