]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
no message
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.cxx
index 4cc563cef3efb88da608d0c39fa8a3185632ee30..f5027edffc143c987cdaec8fc42480bb09f3fe8e 100644 (file)
@@ -35,6 +35,7 @@ Version:   $Revision$
 
 #include "bbtkwxGUIEditorGraphicBBS.h"
 #include "creaWx.h"
+#include "creaSystem.h"
 
 #include <InterpreterBBS.h>
 
@@ -349,13 +350,20 @@ namespace bbtk
                tempFile.open(filename.c_str());
                tempFile << script;
                tempFile.close();
-               
-               std::string command = "\"";
 
+               std::string command = "\""+ crea::System::GetExecutablePath();
+
+               
+#ifdef MACOSX
+               command += separator + "../../../bbi.app/Contents/MacOS";
+#endif
+               
                #ifdef WIN32
                        command += "\"";
                #endif
-
+               
+               /*              
+               
                //command += ConfigurationFile::GetInstance().Get_bin_path();
 //EED          command +="C:/temp/bbtkBIN/RelWithDebInfo//";
 //EED          command +="C:/Program Files/CreaTools/bbtk-0.9.5/bin";
@@ -367,8 +375,9 @@ namespace bbtk
                    command +=".";
                        command += separator + "bbi\" ";
                #endif
+ */
+               command += separator + "bbi\" ";
                command += "\""+filename + "\"";
-
                #ifdef WIN32
                        command += "\"";
                #endif