Mattral's picture
Update app.py
8881f50 verified
raw
history blame
310 Bytes
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)