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
|
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(
|
a = Analysis(
|
||||||
['eyetrackapp.py'],
|
['eyetrackapp.py'],
|
||||||
|
|||||||
@ -83,29 +83,26 @@ class var:
|
|||||||
|
|
||||||
@Async
|
@Async
|
||||||
def center_overlay_calibrate(self):
|
def center_overlay_calibrate(self):
|
||||||
# try:
|
try:
|
||||||
if var.overlay_active != True:
|
if var.overlay_active != True:
|
||||||
|
|
||||||
dirname = os.path.dirname(__file__)
|
dirname = os.getcwd()
|
||||||
overlay_path = os.path.join(dirname, "center.bat")
|
overlay_path = os.path.join(dirname, "center.bat")
|
||||||
env = os.environ.copy()
|
os.startfile(overlay_path)
|
||||||
|
var.overlay_active = True
|
||||||
# Set the working directory to the same directory as the command prompt
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||||
cwd = os.getcwd()
|
server_address = ("localhost", 2112)
|
||||||
os.startfile(overlay_path)
|
sock.bind(server_address)
|
||||||
var.overlay_active = True
|
data, address = sock.recvfrom(4096)
|
||||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
received_int = struct.unpack("!l", data)[0]
|
||||||
server_address = ("localhost", 2112)
|
message = received_int
|
||||||
sock.bind(server_address)
|
self.settings.gui_recenter_eyes = False
|
||||||
data, address = sock.recvfrom(4096)
|
self.calibration_frame_counter = 0
|
||||||
received_int = struct.unpack("!l", data)[0]
|
var.overlay_active = False
|
||||||
message = received_int
|
except:
|
||||||
|
print("[WARN] Calibration overlay error. Make sure SteamVR is Running.")
|
||||||
self.settings.gui_recenter_eyes = False
|
self.settings.gui_recenter_eyes = False
|
||||||
self.calibration_frame_counter = 0
|
|
||||||
var.overlay_active = False
|
var.overlay_active = False
|
||||||
# except:
|
|
||||||
# print("[WARN] Calibration overlay error. Make sure SteamVR is Running.")
|
|
||||||
# self.settings.gui_recenter_eyes = False
|
|
||||||
|
|
||||||
|
|
||||||
class cal:
|
class cal:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user