fix: center.bat not in exe

This commit is contained in:
Prohurtz 2024-11-02 19:17:57 -05:00
parent a291b2fc4f
commit 872f9675b0

View File

@ -39,6 +39,7 @@ from utils.calibration_3d import receive_calibration_data, converge_3d
from utils.misc_utils import resource_path
from pathlib import Path
tool = Path("Tools")
class TimeoutError(RuntimeError):
pass
@ -148,8 +149,7 @@ def center_overlay_calibrate(self):
def overlay_calibrate_3d(self):
try:
if var.overlay_active != True:
dirname = os.getcwd()
overlay_path = os.path.join(dirname, "calibrate.bat")
overlay_path = resource_path(tool / "calibrate.bat")
os.startfile(overlay_path)
var.overlay_active = True
while var.overlay_active: