import subprocess import os os.chdir(os.path.abspath(os.path.dirname(__file__))) subprocess.run("source ./start.sh", shell=True, capture_output=True, env=None)