fix marroc

This commit is contained in:
Nix 2024-11-08 21:30:59 -03:00 committed by GitHub
parent d477e98bd9
commit 34df942953
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -303,8 +303,9 @@ class PicomcVersionSelector(QWidget):
def open_marroc_script(self): def open_marroc_script(self):
try: try:
# Replace 'path_to_marroc.py' with the actual path to marroc.py # Use the interpreter from the current environment
subprocess.Popen(['python', 'marroc.py']) interpreter = sys.executable
subprocess.Popen([interpreter, './marroc.py'])
except FileNotFoundError: except FileNotFoundError:
logging.error("'marroc.py' not found.") logging.error("'marroc.py' not found.")
QMessageBox.critical(self, "Error", "'marroc.py' not found.") QMessageBox.critical(self, "Error", "'marroc.py' not found.")