Skip to content

Commit

Permalink
Initial Commit - Fixing support for Windows Build
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisOuellet committed Dec 4, 2024
1 parent d5dbe94 commit dd13592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def __init__(self, ini_path, window_title="INI Configurator"):
if sys.platform == "darwin":
# For macOS, locate the directory containing the .app bundle
self.script_directory = os.path.abspath(os.path.join(os.path.dirname(sys.executable), '..', '..', '..'))
self.resource_directory = os.path.abspath(os.path.join(sys.executable, "..", "..", "Resources"))
self.resource_directory = os.path.abspath(os.path.join(os.path.dirname(sys.executable), "..", "..", "Resources"))
elif sys.platform == "win32":
# For Windows, locate the directory containing the .exe file
self.script_directory = os.path.abspath(os.path.dirname(sys.executable))
self.resource_directory = os.path.abspath(os.path.join(sys.executable, "Resources"))
self.resource_directory = os.path.abspath(os.path.dirname(sys._MEIPASS))
else:
# For other platforms, use the executable's directory
self.script_directory = os.path.dirname(sys.executable)
Expand Down

0 comments on commit dd13592

Please sign in to comment.