]> Creatis software - bbtk.git/commitdiff
#3403 vtk8itk5wx3-macos
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 27 Oct 2021 14:47:36 +0000 (16:47 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 27 Oct 2021 14:47:36 +0000 (16:47 +0200)
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;