]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
This commit was manufactured by cvs2svn to create tag
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.cxx
index 76cfe77a73440d5d61039d5336aa9ab7be589ceb..7addacf59c6dcee36929bfb443724a19933733fe 100644 (file)
@@ -348,27 +348,25 @@ 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 = "";
-
-               #ifdef WIN32
-                       command += "\"";
-               #endif
-               command += "\""+ crea::System::GetExecutablePath();
+               std::string command = "\""+ crea::System::GetExecutablePath();
 
 
 #ifdef MACOSX
                command += separator + "../../../bbi.app/Contents/MacOS";
 #endif
 
+               #ifdef WIN32
+                       command += "\"";
+               #endif
 
                /*
 
@@ -390,9 +388,7 @@ namespace bbtk
                        command += "\"";
                #endif
 
-        #ifndef WIN32
-            command += " & ";
-               #endif
+               command += " & ";
 
                printf ("RaC wxGUIEditorGraphicBBS::executeScript %s \n" , command.c_str() );
                system( command.c_str() );