]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkInterpreter.cxx
* Fixed problem with 'include *'
[bbtk.git] / kernel / src / bbtkInterpreter.cxx
index e9bf1e8c8cef24bb0af3c64b2162b637a33acb73..c63ec51f30a6862bd033f3865c24fa0001386051 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkInterpreter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/03/07 08:40:14 $
-  Version:   $Revision: 1.40 $
+  Date:      $Date: 2008/03/07 11:15:15 $
+  Version:   $Revision: 1.41 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -795,7 +795,11 @@ void Interpreter::SplitLine ( const std::string& str, std::vector<std::string>&
         {
            if ((*i).substr((*i).size()-4, 4) != ".bbs")
               continue;      // ignore non .bbs files
-           LoadScript(*i,name);
+          std::string command("include ");
+          command += *i;
+          //  LoadScript(*i,name);
+          bool tmp;
+          InterpretLine(command,tmp);
            nbBssFiles++;
         }
         if (nbBssFiles==0)
@@ -846,7 +850,11 @@ void Interpreter::SplitLine ( const std::string& str, std::vector<std::string>&
         {
            if ((*i).substr((*i).size()-4, 4) != ".bbs")
               continue;      // ignore non .bbs files
-           LoadScript(*i,name);
+          std::string command("include ");
+          command += *i;
+          bool tmp;
+          InterpretLine(command,tmp);
+          //           LoadScript(*i,name);
            nbBssFiles++;
         }
         if (nbBssFiles==0)