]> Creatis software - bbtk.git/commitdiff
BUG Documentation MAC
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 24 Mar 2009 13:42:59 +0000 (13:42 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 24 Mar 2009 13:42:59 +0000 (13:42 +0000)
kernel/src/bbtkConfigurationFile.cxx
kernel/src/bbtkWxGUIScriptingInterface.cxx

index 58a19437a64df08c17240974bfdefc4d540a09ff..45f39dc9732e18e89dbbd539b4adf0a6bf5db538 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConfigurationFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2009/03/23 13:06:41 $
-  Version:   $Revision: 1.29 $
+  Date:      $Date: 2009/03/24 13:42:59 $
+  Version:   $Revision: 1.30 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -54,7 +54,7 @@ namespace bbtk
   ConfigurationFile::ConfigurationFile()
   {
 
-    mFile_separator = VALID_FILE_SEPARATOR;
+       mFile_separator = VALID_FILE_SEPARATOR;
     
     // ==> Set system paths 
     mBin_path = Utilities::GetExecutablePath();
@@ -70,7 +70,16 @@ namespace bbtk
 #endif
 */    
 #ifdef MACOSX
-         mBin_path = mBin_path + "/../../..";
+         
+         std::string macPath("Contents/MacOS"); 
+         int sbp = mBin_path.length();
+         int smp = macPath.length();
+         if (mBin_path.compare( sbp-smp, smp, macPath )==0 )
+         {
+                 mBin_path = mBin_path + "/../../..";
+         }
+         
+         
 #endif   
          mInstall_path = mBin_path + "/..";
 
index 618f8049366eb5af701e02cb9903b866c617ab3c..b6581d08788b1d939eda5d004622d40fa34d19a0 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
   Language:  C++
-  Date:      $Date: 2009/03/23 13:06:41 $
-  Version:   $Revision: 1.34 $
+  Date:      $Date: 2009/03/24 13:42:59 $
+  Version:   $Revision: 1.35 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -93,7 +93,7 @@ namespace bbtk
     
     mInterpreter = bbtk::Interpreter::New();
     mInterpreter->SetUser(this);
-    mInterpreter->SetCommandLine(true);
+       mInterpreter->SetCommandLine(true);
     mInterpreter->SetThrow(true);
     //    mInterpreter->AddBreakObserver
     //boost::bind( &WxGUIScriptingInterface::InterpreterUserOnBreak, this ));
@@ -558,7 +558,8 @@ namespace bbtk
 #endif
        command += " " + pack + " -q";
     bbtkMessage("debug",1,"Executing system command '"<<command<<"'"<<std::endl);
-    
+
+printf("EED WxGUIScriptingInterface::DoRegeneratePackageDoc %s",  command.c_str());      
 
     if ( ! system ( command.c_str() ) )
       {