webscraper/scripts/run_with_no_docker.py
paprykdev 8ca8225122
Some checks are pending
Docker Image CI / build (push) Waiting to run
refactor: clean up get_path function and remove unnecessary print statement
2024-11-15 23:44:59 +01:00

17 lines
351 B
Python

import subprocess
from run_command import run_command
from get_path import get_path
def run_main():
path = get_path()
try:
result = run_command(f"python3 {path}/app/main.py")
print(result)
except subprocess.CalledProcessError as e:
print(f"Error occurred: {e.stderr}")
if __name__ == "__main__":
run_main()