From 4cde26609ff880f81266e7d27aeba8700b74feda Mon Sep 17 00:00:00 2001 From: Prohurtz <48768484+RedHawk989@users.noreply.github.com> Date: Thu, 9 Nov 2023 09:27:11 -0600 Subject: [PATCH] fix: path fix? --- EyeTrackApp/osc_calibrate_filter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/EyeTrackApp/osc_calibrate_filter.py b/EyeTrackApp/osc_calibrate_filter.py index d979978..ee798f1 100644 --- a/EyeTrackApp/osc_calibrate_filter.py +++ b/EyeTrackApp/osc_calibrate_filter.py @@ -82,9 +82,10 @@ class var: def center_overlay_calibrate(self): # try: print(os.getcwd()) - os.startfile( - os.getcwd() + "/Tools/ETVR_SteamVR_Calibration_Overlay.exe center" - ) # check the file path. + + 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. sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = ("localhost", 1234) sock.bind(server_address)