Skip to content

Commit 7da864f

Browse files
committed
Removed NUITKA_ONEFILE_PARENT.
Perhaps now Nuitka action will work fine with most recent version.
1 parent 2d10367 commit 7da864f

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build_executable_nuitka.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Run Nuitka for BDSP_ColorVariation_JSONParser
2828
uses: Nuitka/Nuitka-Action@main
2929
with:
30-
nuitka-version: 2.6.9
30+
nuitka-version: main
3131
script-name: src/BDSP_ColorVariation_JSONParser/json_parser.py
3232
output-file: BDSP_ColorVariation_JSONParser
3333
mode: app

src/BDSP_ColorVariation_JSONParser/general.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@
1414

1515
def get_resource_path(file_path: str) -> str:
1616
"""
17-
Returns path to file or directory inside project, when used PyInstaller or Nuitka are used.
17+
Returns path to file or directory inside project.
1818
:param file_path: Original path to file or directory.
1919
:return: Modified path to file or directory.
2020
"""
21-
if "NUITKA_ONEFILE_PARENT" in os.environ:
22-
base_path = os.path.dirname(sys.executable)
23-
elif hasattr(sys, "_MEIPASS"):
21+
if hasattr(sys, "_MEIPASS"): # PyInstaller.
2422
base_path = getattr(sys, "_MEIPASS")
2523
else:
2624
base_path = os.path.dirname(__file__)

0 commit comments

Comments
 (0)