X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FbbtkwxGUIEditorGraphicBBS.cxx;fp=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FbbtkwxGUIEditorGraphicBBS.cxx;h=76cfe77a73440d5d61039d5336aa9ab7be589ceb;hb=5d44627e6f3daf33b919b5dc2280d97f2f3a4e6f;hp=f010e33f610c2b40396c552138ed0d452609be8c;hpb=3ec65b98fd11e1bd4379de75498d1770fd0ab397;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index f010e33..76cfe77 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -348,25 +348,27 @@ namespace bbtk void wxGUIEditorGraphicBBS::executeScript(std::string script) { - std::string separator = ConfigurationFile::GetInstance().Get_file_separator (); - std::string dir = ConfigurationFile::GetInstance().Get_default_temp_dir(); - std::string filename = dir + separator + "tmp_bbtk.bbs"; + std::string separator = ConfigurationFile::GetInstance().Get_file_separator (); + std::string dir = ConfigurationFile::GetInstance().Get_default_temp_dir(); + std::string filename = dir + separator + "tmp_bbtk.bbs"; ofstream tempFile; tempFile.open(filename.c_str()); tempFile << script; tempFile.close(); - std::string command = "\""+ crea::System::GetExecutablePath(); + std::string command = ""; + + #ifdef WIN32 + command += "\""; + #endif + command += "\""+ crea::System::GetExecutablePath(); #ifdef MACOSX command += separator + "../../../bbi.app/Contents/MacOS"; #endif - #ifdef WIN32 - command += "\""; - #endif /* @@ -385,7 +387,7 @@ namespace bbtk command += separator + "bbi\" "; command += "\""+filename + "\""; #ifdef WIN32 - // command += "\""; + command += "\""; #endif #ifndef WIN32