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
return;
}
-
// =================================================
// The following structure was checked to work
// with any type of relative/absolute path.
// 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! ["<<name<<"] is an illegal name");
+ return;
+ }
+
// std::string path = Utilities::ExpandLibName(upath, verbose);
- std::string path = Utilities::ExpandLibName(name, verbose); // keep last item, here.
+ std::string path = Utilities::ExpandLibName(name, verbose); // keep last item, here.
+
if (path != "")
{
std::string p2;