From 6e8ee442ab0f001981c8a1940109801443d81e6c Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 29 Jan 2008 13:54:47 +0000 Subject: [PATCH] paths --- kernel/src/bbtkInterpreter.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/kernel/src/bbtkInterpreter.cxx b/kernel/src/bbtkInterpreter.cxx index 32c8249..39f1cbe 100644 --- a/kernel/src/bbtkInterpreter.cxx +++ b/kernel/src/bbtkInterpreter.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkInterpreter.cxx,v $ $ Language: C++ - Date: $Date: 2008/01/29 13:34:59 $ - Version: $Revision: 1.9 $ + Date: $Date: 2008/01/29 13:54:47 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -821,15 +821,16 @@ verbose = true; // (not only a plain script name) // we trust him, and try to explade the directory name // WARNING : starting from current local directory : ./whatYouWant (./ mandatory!) - - if (slash_position != std::string::npos) + + // if (slash_position != std::string::npos) + if (name[0]=='/' || name[1] == ':') { // ===========================================================check user supplied location fullnameGiven = true; fullPathScriptName = Utilities::ExpandLibName(name, verbose); - + // allow user to always forget ".bbs" int l = fullPathScriptName.size(); if (l!=0) { @@ -854,7 +855,8 @@ verbose = true; //} } // endif l != 0 } - else + else + // =============================================================== iterate on the paths { std::cout << "iterate"<