Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2010/03/19 08:18:41 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2010/03/30 07:33:43 $
+ Version: $Revision: 1.43 $
=========================================================================*/
/* ---------------------------------------------------------------------
std::string filename = dir + separator + "tmp_bbtk.bbs";
mWxGUITextEditor->GetCurrentPage()->SaveFile(filename);
- std::string command = "\"\"";
+ std::string command = "\"";
+
+#ifdef WIN32
+ command += "\"";
+#endif
+
command += ConfigurationFile::GetInstance().Get_bin_path();
#ifdef MACOSX
command += separator + "bbi.app/Contents/MacOS/bbi\" ";
#else
- command += separator + "bbi.exe\" ";
+ command += separator + "bbi\" ";
#endif
- command += "\""+filename + "\"\"";
+ command += "\""+filename + "\"";
+
+#ifdef WIN32
+ command += "\"";
+#endif
+
command += " & ";
printf ("EED WxGUIScriptingInterface::WxGUITextEditorRunBBI %s \n" , command.c_str() );