]> Creatis software - bbtk.git/commitdiff
Abs paths on Windows
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 29 Jan 2008 10:56:03 +0000 (10:56 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 29 Jan 2008 10:56:03 +0000 (10:56 +0000)
kernel/src/bbtkFactory.cxx

index 61b7e3266a3f92b3d9ecbd2b0141d61177e072d4..4991eccd505802ec5ac513ed348e21521009d0fe 100644 (file)
@@ -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 10:56:03 $
+Version:   $Revision: 1.5 $
                                                                                 
 
 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
@@ -322,7 +322,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;