From 7bedaaec0d64800f5c13f2a484e977ec154ad010 Mon Sep 17 00:00:00 2001 From: SnuffSocket <82658601+SnuffSocket@users.noreply.github.com> Date: Mon, 14 Apr 2025 01:36:28 +0300 Subject: [PATCH] Fix: "Import statement position to prevent errors on non windows machines" By RedHawk989: https://github.com/EyeTrackVR/EyeTrackVR/commit/f595fb53c6e47dae1e1af21ec41852548ea83bce --- BabbleApp/babbleapp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BabbleApp/babbleapp.py b/BabbleApp/babbleapp.py index f1a3263..2fa7c12 100644 --- a/BabbleApp/babbleapp.py +++ b/BabbleApp/babbleapp.py @@ -23,7 +23,6 @@ import requests import threading import asyncio import logging -from ctypes import c_int from babble_model_loader import * from camera_widget import CameraWidget from config import BabbleConfig @@ -41,8 +40,7 @@ winmm = None if os_type == "Windows": try: - from ctypes import windll - + from ctypes import windll, c_int winmm = windll.winmm except OSError: print(