diff --git a/dist/mp-server.exe b/dist/mp-server.exe index 12c8633..1252e73 100644 Binary files a/dist/mp-server.exe and b/dist/mp-server.exe differ diff --git a/mp-server.py b/mp-server.py index ce7bf33..73ad185 100644 --- a/mp-server.py +++ b/mp-server.py @@ -17,7 +17,7 @@ class MacroPadServer: self.root.geometry("800x600") # Create the image Directory - self.images_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "macro_images") + self.images_dir = "macro_images" os.makedirs(self.images_dir, exist_ok=True) # Set dark theme colors @@ -171,7 +171,7 @@ class MacroPadServer: # Load image if exists if "image_path" in macro and macro["image_path"]: try: - img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), macro["image_path"]) + img_path = macro["image_path"] img = Image.open(img_path) # Resize for display img.thumbnail((64, 64)) # Keep aspect ratio for display diff --git a/mp-server.spec b/mp-server.spec index 0001e65..a23f783 100644 --- a/mp-server.spec +++ b/mp-server.spec @@ -29,7 +29,7 @@ exe = EXE( upx=True, upx_exclude=[], runtime_tmpdir=None, - console=True, + console=False, disable_windowed_traceback=False, argv_emulation=False, target_arch=None,