]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdExecSystemCommand.cxx
#3403 vtk8itk5wx3-macos
[bbtk.git] / packages / std / src / bbstdExecSystemCommand.cxx
index 43c9dc59a1c209ef9a6a57f0c57ec923edeeeda5..be41decdb35b6218aa95501d1d6347ab619e7970 100755 (executable)
@@ -82,13 +82,18 @@ namespace bbstd
       }
 //      #if defined(_WIN32)
 //         ccommand="start /b "+ccommand;
-//      #endif // defined(_WIN32)      
+//      #endif // defined(_WIN32)
 
+        
+#ifndef APPLE
+        ccommand = "source ~/.bbtk/profile_creatools ; " + ccommand;
+#endif
+        
                if (bbGetInputVerbose()==true) 
                {
                        std::cout << "*** Executing system command : '"<<ccommand<<"'"<<std::endl;
                }  
-         result = system ( ccommand.c_str() );
+        result = system ( ccommand.c_str() );
          
          //std::cout << "DFGO - ExecSystemCommand::DoProcess result=" << result << std::endl;