From 44187f5338c62e727d672fc7a4881e8a62bbc060 Mon Sep 17 00:00:00 2001 From: raphael60650 Date: Wed, 16 Jun 2021 08:30:08 +0200 Subject: [PATCH] PATH directory wasn't properly detected --- source/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/__init__.py b/source/__init__.py index 73b96eb..37e0219 100644 --- a/source/__init__.py +++ b/source/__init__.py @@ -73,11 +73,13 @@ def __init__(self): if not(os.path.exists(self.path_mkwf)): break directory_name, i = f"MKWiiFaraphel ({i})", i + 1 - if os.path.exists(self.path_mkwf + "/DATA/"): self.path_mkwf += "/DATA/" - self.Progress(show=True, indeter=True, statut=self.translate("Extraction du jeu...")) subprocess.call(["./tools/wit/wit", "EXTRACT", get_nodir(path), "--DEST", directory_name] , creationflags=CREATE_NO_WINDOW, cwd=get_dir(path)) + + if os.path.exists(self.path_mkwf + "/DATA/"): self.path_mkwf += "/DATA/" + print(self.path_mkwf) + self.Progress(show=False) else: