X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkFactory.cxx;h=5c060075c20806d05dde4e55871ac1d4b24841b8;hb=f507b7d79a0ff0d3b0c09b12b15dd754319f0123;hp=61b7e3266a3f92b3d9ecbd2b0141d61177e072d4;hpb=cadbc7f9439327013dfbefa9415ad7c8680fb351;p=bbtk.git diff --git a/kernel/src/bbtkFactory.cxx b/kernel/src/bbtkFactory.cxx index 61b7e32..5c06007 100644 --- a/kernel/src/bbtkFactory.cxx +++ b/kernel/src/bbtkFactory.cxx @@ -4,8 +4,8 @@ Program: bbtk Module: $RCSfile: bbtkFactory.cxx,v $ Language: C++ -Date: $Date: 2008/01/29 10:12:45 $ -Version: $Revision: 1.4 $ +Date: $Date: 2008/01/29 14:01:31 $ +Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de @@ -298,7 +298,6 @@ namespace bbtk return; } - // ================================================= // The following structure was checked to work // with any type of relative/absolute path. @@ -322,7 +321,10 @@ namespace bbtk } // std::string path = Utilities::ExpandLibName(upath, verbose); - std::string path = Utilities::ExpandLibName(name, verbose); // keep last item, here. + std::string path; + if (name[1]!= ':') // Absolute name, under Windows + path = Utilities::ExpandLibName(name, verbose); // keep last item, here. + if (path != "") { std::string p2;