From a4301a60cbe487d0cd8c9b9dc8eeb4a4386bfca4 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Tue, 7 Nov 2023 18:40:02 +0100 Subject: [PATCH] #3258 save the bbs in python version --- .../bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index 6cc51c4..f019a5c 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -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() ); } } //========================================================================= -- 2.47.1