From: eduardo.davila@creatis.insa-lyon.fr Date: Tue, 3 Dec 2024 10:36:21 +0000 (+0100) Subject: #3260 bashrc to bashrc_CreaTools X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2c0c4f15cb635335064db63a99671b7250bef6c7;p=bbtkGEditor.git #3260 bashrc to bashrc_CreaTools --- diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index 48f80b9..468c1be 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -570,7 +570,7 @@ void wxGUIEditorGraphicBBS::executeScript(std::string script) { #endif #ifdef __APPLE__ - command = "source ~/.bashrc ; "+command; + command = "source ~/.bashrc_CreaTools ; "+command; #endif @@ -966,7 +966,7 @@ void wxGUIEditorGraphicBBS::OnSaveActualDiagram(wxCommandEvent& event) { { std::string pathfilenamepy = pathfilenamebbs; pathfilenamepy.replace( pathfilenamepy.length()-3, 3 , "py"); - std::string cmdPy("source ~/.bashrc; bbs2 "+pathfilenamebbs+" "+pathfilenamepy); + std::string cmdPy("source ~/.bashrc_CreaTools; bbs2 "+pathfilenamebbs+" "+pathfilenamepy); printf("EED wxGUIEditorGraphicBBS::OnSaveActualDiagram cmd:%s\n", cmdPy.c_str() ); system( cmdPy.c_str() ); } // ExportFormat 1 or 2 All and Python @@ -974,7 +974,7 @@ void wxGUIEditorGraphicBBS::OnSaveActualDiagram(wxCommandEvent& event) { { std::string pathfilenamejs = pathfilenamebbs; pathfilenamejs.replace( pathfilenamejs.length()-3, 3 , "js"); - std::string cmdjs("source ~/.bashrc; bbs2 "+pathfilenamebbs+" "+pathfilenamejs); + std::string cmdjs("source ~/.bashrc_CreaTools; bbs2 "+pathfilenamebbs+" "+pathfilenamejs); printf("EED wxGUIEditorGraphicBBS::OnSaveActualDiagram cmd:%s\n", cmdjs.c_str() ); system( cmdjs.c_str() ); } // ExportFormat 1 or 3 All and JavaScript