Spaces:
Sleeping
Sleeping
File size: 310 Bytes
b302612 8881f50 26dede0 8881f50 26dede0 8881f50 |
1 2 3 4 5 6 7 8 9 10 |
import os
import subprocess
# Set the directory path of runner.py inside the 'app' folder
app_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app')
runner_path = os.path.join(app_dir, 'runner.py')
# Run runner.py using its directory path
subprocess.run(["python", runner_path], cwd=app_dir)
|