Skip to content

Commit

Permalink
cleaner file refs for exe
Browse files Browse the repository at this point in the history
  • Loading branch information
JTvD committed Dec 24, 2024
1 parent 656537a commit 24d021b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ibridgesgui/gui_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import os
import pathlib
import sys
from typing import Union

import irods
Expand All @@ -20,9 +21,12 @@
except ImportError:
from importlib_resources import files


UI_FILE_DIR = files(__package__) / "ui_files"
LOGO_DIR = files(__package__) / "icons"
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
UI_FILE_DIR = pathlib.Path("ui_files")
LOGO_DIR = pathlib.Path("icons")
else:
UI_FILE_DIR = files(__package__) / "ui_files"
LOGO_DIR = files(__package__) / "icons"


class UiLoader(PySide6.QtUiTools.QUiLoader):
Expand Down

0 comments on commit 24d021b

Please sign in to comment.