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
/*
command += separator + "bbi\" ";
command += "\""+filename + "\"";
#ifdef WIN32
- // command += "\"";
+ command += "\"";
#endif
#ifndef WIN32