mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix: file path, and folders
This commit is contained in:
parent
1ecdbdc142
commit
3cee994366
@ -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'],
|
||||
|
||||
@ -83,29 +83,26 @@ class var:
|
||||
|
||||
@Async
|
||||
def center_overlay_calibrate(self):
|
||||
# try:
|
||||
if var.overlay_active != True:
|
||||
try:
|
||||
if var.overlay_active != True:
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
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)
|
||||
server_address = ("localhost", 2112)
|
||||
sock.bind(server_address)
|
||||
data, address = sock.recvfrom(4096)
|
||||
received_int = struct.unpack("!l", data)[0]
|
||||
message = received_int
|
||||
dirname = os.getcwd()
|
||||
overlay_path = os.path.join(dirname, "center.bat")
|
||||
os.startfile(overlay_path)
|
||||
var.overlay_active = True
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
server_address = ("localhost", 2112)
|
||||
sock.bind(server_address)
|
||||
data, address = sock.recvfrom(4096)
|
||||
received_int = struct.unpack("!l", data)[0]
|
||||
message = received_int
|
||||
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
|
||||
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
|
||||
|
||||
|
||||
class cal:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user