]> Creatis software - bbtkGEditor.git/commitdiff
#3258 save the bbs in python version
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 7 Nov 2023 17:40:02 +0000 (18:40 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 7 Nov 2023 17:40:02 +0000 (18:40 +0100)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx

index 6cc51c4d1f0360bf05d9cf12d69104bd5f636100..f019a5caf0e622ed0034ff52f943faeba9f9a0fd 100644 (file)
@@ -963,6 +963,12 @@ void wxGUIEditorGraphicBBS::OnSaveActualDiagram(wxCommandEvent& event) {
                        SaveActualDiagram(pathfilename);
                        SaveActualComplexBox(pathfilenamebbs);
                } //if isActualDiagramComplexBox
+        std::string cmdPy("source ~/.bashrc;  bbs2 "+pathfilenamebbs+" py" );
+        printf("EED wxGUIEditorGraphicBBS::OnSaveActualDiagram cmd:%s\n", cmdPy.c_str() );
+        system( cmdPy.c_str() );
+        std::string cmdjs("source ~/.bashrc;  bbs2 "+pathfilenamebbs+" js" );
+        printf("EED wxGUIEditorGraphicBBS::OnSaveActualDiagram cmd:%s\n", cmdjs.c_str() );
+        system( cmdjs.c_str() );
        }
 }
 //=========================================================================