mirror of
https://github.com/nixietab/picodulce.git
synced 2025-04-10 10:28:56 +01:00
fix marroc
This commit is contained in:
parent
d477e98bd9
commit
34df942953
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user