Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder_init.cpp

    r15e197 r748fc7  
    126126  // if we have python, autoexecute a molecuilder script in current folder
    127127#ifdef HAVE_PYTHON
    128   const boost::filesystem::path pythonfilename("./molecuilder.py");
    129   executePythonScriptFile(pythonfilename);
     128  const std::string pythonfilename_string("./molecuilder.py");
     129  executePythonScript(pythonfilename_string);
    130130#endif
    131131
    132132  // handle remaining arguments by CommandLineParser
    133   // first argument of "--test" initializes special molecuilder gui test mode
    134   if ((argc>1)
    135 #ifdef USE_GUI_QT
    136       && !QtUIFactory::isTestMode(argv[1])
    137 #endif
    138   ) {
     133  if (argc>1) {
    139134    LOG(0, "Setting UI to CommandLine.");
    140135    CommandLineParser::getInstance().InitializeCommandArguments();
     
    144139  } else {
    145140    // In the interactive mode, we can leave the user the choice in case of error
     141    ASSERT_DO(Assert::Ask);
    146142    #ifdef USE_GUI_QT
    147     if ((argc>1) && (QtUIFactory::isTestMode(argv[1])))
    148       ASSERT_DO(Assert::Abort);
    149     else
    150       ASSERT_DO(Assert::Ask);
    151143      LOG(0, "Setting UI to Qt4.");
    152       UIFactory::registerFactory(new QtUIFactory::description(argc, argv));
     144      UIFactory::registerFactory(new QtUIFactory::description());
    153145      UIFactory::makeUserInterface("Qt4");
    154146    #else
    155       ASSERT_DO(Assert::Ask);
    156147      LOG(0, "Setting UI to Text.");
    157148      cout << MOLECUILDERVERSION << endl;
Note: See TracChangeset for help on using the changeset viewer.