Changes in src/builder_init.cpp [748fc7:15e197]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder_init.cpp
r748fc7 r15e197 126 126 // if we have python, autoexecute a molecuilder script in current folder 127 127 #ifdef HAVE_PYTHON 128 const std::string pythonfilename_string("./molecuilder.py");129 executePythonScript (pythonfilename_string);128 const boost::filesystem::path pythonfilename("./molecuilder.py"); 129 executePythonScriptFile(pythonfilename); 130 130 #endif 131 131 132 132 // handle remaining arguments by CommandLineParser 133 if (argc>1) { 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 ) { 134 139 LOG(0, "Setting UI to CommandLine."); 135 140 CommandLineParser::getInstance().InitializeCommandArguments(); … … 139 144 } else { 140 145 // In the interactive mode, we can leave the user the choice in case of error 141 ASSERT_DO(Assert::Ask);142 146 #ifdef USE_GUI_QT 147 if ((argc>1) && (QtUIFactory::isTestMode(argv[1]))) 148 ASSERT_DO(Assert::Abort); 149 else 150 ASSERT_DO(Assert::Ask); 143 151 LOG(0, "Setting UI to Qt4."); 144 UIFactory::registerFactory(new QtUIFactory::description( ));152 UIFactory::registerFactory(new QtUIFactory::description(argc, argv)); 145 153 UIFactory::makeUserInterface("Qt4"); 146 154 #else 155 ASSERT_DO(Assert::Ask); 147 156 LOG(0, "Setting UI to Text."); 148 157 cout << MOLECUILDERVERSION << endl;
Note:
See TracChangeset
for help on using the changeset viewer.