]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkUtilities.h
index da5bba8df4ccb44e2e518f5a64980d349d738ee8..b399867438ad95a1ffccd3f01f910f429dc307cf 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUtilities.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/29 10:12:45 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/01/30 15:29:07 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See doc/license.txt or
@@ -103,7 +103,7 @@ namespace bbtk
     {
           pkgname = name;
     }
-    
+
     // remove {.so | dll} if any
     std::string::size_type dot_position = pkgname.find_last_of('.');      
     if (dot_position != std::string::npos){
@@ -179,9 +179,9 @@ namespace bbtk
     // tooHigh : true is user supplies a library pathname with too many "../"
     bool tooHigh = false;
     
-//std::cout << "------------------cwd ["  << cwd << "]" << std::endl;
+//std::cout << "------------------cwd ["  << cwd << "] name [" << name << "]" << std::endl;
  
-    if ( name[0] == '/' ||  name[0] == '\\' )
+    if ( name[0] == '/' ||  name[1] == ':' ) // Linux or Windows absolute name
     {
       return(libname);
     }