X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkFactory.cxx;h=849ebabfc3f4f84c2403206ea7303c09d8020ba6;hb=2d76cd309d74d5f83d701d6bb0a4140d5d122b36;hp=2a633d32c7bcd6a4c37fcb4c7c0e7e8272f80765;hpb=342c21bb6c5f2ba6ba76aacb403ce1201a10957c;p=bbtk.git diff --git a/kernel/src/bbtkFactory.cxx b/kernel/src/bbtkFactory.cxx index 2a633d3..849ebab 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/28 09:12:49 $ -Version: $Revision: 1.3 $ +Date: $Date: 2008/01/30 09:28:15 $ +Version: $Revision: 1.7 $ 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. @@ -315,8 +314,15 @@ namespace bbtk // push it into vector of paths if (upath.length()>0) // ------------------------------------- check user supplied location { + if (name[0] != '.' && name[0] != '/' && name[1]!= ':') + { + bbtkError("Use absolute or relative path name! ["<