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