1 /*=========================================================================
4 Module: $RCSfile: bbs2cpp.cxx,v $
6 Date: $Date: 2008/10/14 14:20:24 $
7 Version: $Revision: 1.4 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
20 #include "bbtkInterpreter.h"
21 #include "bbtkUtilities.h"
23 int main(int argc, char* argv[])
27 std::string file,path;
28 file = bbtk::Utilities::ExtractScriptName(argv[1],path);
30 bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(file);
36 I->InterpretFile(argv[1]);
38 catch (bbtk::Exception e)