IDE: Tutorial/Example menu was broken : path of project being open was the same for all menu entries.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 16 Nov 2021 20:31:11 +0100
changeset 3390 6532d7a1a3b5
parent 3387 ecefd38d5c7d
child 3392 4353c56a53d1
child 3393 a65bcbb6af20
IDE: Tutorial/Example menu was broken : path of project being open was the same for all menu entries.
BeremizIDE.py
--- a/BeremizIDE.py	Mon Nov 08 14:10:36 2021 +0100
+++ b/BeremizIDE.py	Tue Nov 16 20:31:11 2021 +0100
@@ -264,7 +264,7 @@
 
             projectpath = os.path.join(exemples_dir, dirname)
 
-            def OpenExemple(event):
+            def OpenExemple(event, projectpath=projectpath):
                 if self.CTR is not None and not self.CheckSaveBeforeClosing():
                     return