import subprocess # Run a Python script from the cloned repository script_path = "Fooocus/your_script.py" subprocess.run(["python", script_path])