fix: file path, and folders

This commit is contained in:
Prohurtz 2023-11-24 18:22:58 -06:00
parent 1ecdbdc142
commit 3cee994366
2 changed files with 18 additions and 21 deletions

View File

@ -4,7 +4,7 @@ import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5)
block_cipher = None
resources=[("Audio/*", "Audio"), ("Images/*", "Images/"), ("pye3d/refraction_models/*", "pye3d/refraction_models/"), ("Models/*", "Models/")]
resources=[("Audio/*", "Audio"), ("Images/*", "Images/"), ("Tools/*", "Tools/"), ("pye3d/refraction_models/*", "pye3d/refraction_models/"), ("Models/*", "Models/")]
a = Analysis(
['eyetrackapp.py'],

View File

@ -83,15 +83,11 @@ class var:
@Async
def center_overlay_calibrate(self):
# try:
try:
if var.overlay_active != True:
dirname = os.path.dirname(__file__)
dirname = os.getcwd()
overlay_path = os.path.join(dirname, "center.bat")
env = os.environ.copy()
# Set the working directory to the same directory as the command prompt
cwd = os.getcwd()
os.startfile(overlay_path)
var.overlay_active = True
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
@ -103,9 +99,10 @@ def center_overlay_calibrate(self):
self.settings.gui_recenter_eyes = False
self.calibration_frame_counter = 0
var.overlay_active = False
# except:
# print("[WARN] Calibration overlay error. Make sure SteamVR is Running.")
# self.settings.gui_recenter_eyes = False
except:
print("[WARN] Calibration overlay error. Make sure SteamVR is Running.")
self.settings.gui_recenter_eyes = False
var.overlay_active = False
class cal: