diff --git a/computer_vision_launcher/cv_program_launcher.py b/computer_vision_launcher/cv_program_launcher.py index aac1df287779fc0fa7fe3590fa989be673193cfd..47b9266818458afa67b2d0d696f8f233482752d1 100644 --- a/computer_vision_launcher/cv_program_launcher.py +++ b/computer_vision_launcher/cv_program_launcher.py @@ -1,4 +1,6 @@ -from os import pipe, fdopen +import os +import sys +from os import pipe, fdopen, path from subprocess import Popen @@ -10,7 +12,18 @@ class CVProgramLauncher: def __enter__(self): fd_input, fd_output = pipe() self._input_fd = fdopen(fd_input) - self._cv_process = Popen(["python", "./fake_cv_program.py", str(fd_output), self.team_color]) + self._cv_process = Popen( + [ + "/Users/cytadel/Library/Caches/pypoetry/virtualenvs/polystar.robots-at-robots-UuVcm5u0-py3.7/bin/python3", + "/Users/cytadel/polystar/cv-code/robots-at-robots/research/demos/demo_pipeline.py", + str(fd_output), + self.team_color, + ], + env={ + 'PYTHONPATH': '/Users/cytadel/polystar/cv-code/robots-at-robots:/Users/cytadel/polystar/cv-code/common', + 'PATH': os.environ['PATH'] + ';sbin', + } + ) return self def __exit__(self, exc_type, exc_val, exc_tb):