]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 30 Mar 2010 07:33:43 +0000 (07:33 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 30 Mar 2010 07:33:43 +0000 (07:33 +0000)
kernel/src/bbtkWxGUIScriptingInterface.cxx

index fd43191ca23f7d87f002f54782ba81876788450f..381961c6ed5a455c08084ad2d76926b3366db090 100644 (file)
@@ -2,8 +2,8 @@
   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 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -441,14 +441,24 @@ namespace bbtk
          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() );