Skip to content

Commit 3180e1c

Browse files
committed
fix: get parent directory correctly
1 parent 96ea71a commit 3180e1c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

WiiLinkPatcherGUI.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
from setup.patch import PatchingPage
7171
from setup.sd import AskSD, SelectSD, WADCleanup, FileCopying
7272
from modules.widgets import ClickableLabel
73-
from modules.consts import temp_dir, file_path, wiilink_dir
73+
from modules.consts import temp_dir, file_path, wiilink_dir, patcher_version
7474

7575

7676
class IntroPage(QWizardPage):
@@ -218,8 +218,6 @@ def __init__(self, parent=None):
218218
title_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
219219

220220
# Version
221-
global patcher_version
222-
223221
version_label = QLabel(self.tr(f"GUI - Version {patcher_version}"))
224222
version_label.setProperty("class", "version")
225223
version_label.setAlignment(Qt.AlignmentFlag.AlignCenter)

modules/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
patcher_version = "1.0 RC4"
66

77
temp_dir = pathlib.Path().joinpath(tempfile.gettempdir(), "WiiLinkPatcher")
8-
file_path = pathlib.Path(__file__).parent
8+
file_path = pathlib.Path(__file__).parents[1]
99

1010
wiilink_dir = pathlib.Path().joinpath("WiiLink")
1111

0 commit comments

Comments
 (0)