]> Creatis software - creaImageIO.git/commitdiff
path correction for MAC OS
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Tue, 9 Mar 2010 11:54:45 +0000 (11:54 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Tue, 9 Mar 2010 11:54:45 +0000 (11:54 +0000)
src2/creaImageIOGimmick.cpp

index cbe737d96f79846f2ba2523b8100af897055aed1..aa05e4cf7520ad3845992144c9b63efdcfc9b020 100644 (file)
@@ -276,12 +276,17 @@ namespace creaImageIO
 // The following stuff works on Linux, NOT CHECKED on Windows // JPR
                
 #if defined(_WIN32)            
-               path+="/bin/Shared/gimmick/";
-               path+=mLocalDescpName;
-#else          
-               path+="/Shared/gimmick/";
+               path+="/bin/shared/gimmick/";
+#endif
+
+#if defined(__APPLE__)
+               path+="../../../../shared/gimmick/";
+#endif 
+
+#if defined (LINUX)
+               path+="../shared/gimmick/";
+#endif 
                path+= mLocalDescpName;
-#endif         
                std::cout <<"From: " << path   <<std::endl;
                std::cout <<"To: "   << setDir <<std::endl;
                boost::algorithm::replace_all(  path,