From 9e358f64aed45ee6fb73c6f52aea21bb96868de2 Mon Sep 17 00:00:00 2001 From: Prohurtz <48768484+RedHawk989@users.noreply.github.com> Date: Thu, 9 Nov 2023 09:34:35 -0600 Subject: [PATCH] fix: overlay call --- EyeTrackApp/osc_calibrate_filter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EyeTrackApp/osc_calibrate_filter.py b/EyeTrackApp/osc_calibrate_filter.py index 158f05d..f195c3d 100644 --- a/EyeTrackApp/osc_calibrate_filter.py +++ b/EyeTrackApp/osc_calibrate_filter.py @@ -7,6 +7,7 @@ import socket import struct import threading import os +import subprocess class TimeoutError(RuntimeError): @@ -86,7 +87,8 @@ def center_overlay_calibrate(self): dirname = os.path.dirname(__file__) overlay_path = os.path.join(dirname, "Tools\\ETVR_SteamVR_Calibration_Overlay.exe") - os.startfile(overlay_path + " center") # check the file path. + + subprocess.run([overlay_path, "center"]) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = ("localhost", 1234) sock.bind(server_address)