import os import subprocess print(os.getcwd()) subprocess.run("source /home/mosiur/scripts/scnsht_automate/bin/activate", check=True, executable="/bin/bash") subprocess.run("python /home/mosiur/scripts/ops-snaps/capture_screenshot.py", check=True, shell=True)