From 34df942953e98594764b46156bdf55e27f14cdd1 Mon Sep 17 00:00:00 2001 From: Nix <75538775+nixietab@users.noreply.github.com> Date: Fri, 8 Nov 2024 21:30:59 -0300 Subject: [PATCH] fix marroc --- picodulce.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/picodulce.py b/picodulce.py index ecd3115..2d521c7 100644 --- a/picodulce.py +++ b/picodulce.py @@ -303,8 +303,9 @@ class PicomcVersionSelector(QWidget): def open_marroc_script(self): try: - # Replace 'path_to_marroc.py' with the actual path to marroc.py - subprocess.Popen(['python', 'marroc.py']) + # Use the interpreter from the current environment + interpreter = sys.executable + subprocess.Popen([interpreter, './marroc.py']) except FileNotFoundError: logging.error("'marroc.py' not found.") QMessageBox.critical(self, "Error", "'marroc.py' not found.")