Skip to content

Commit

Permalink
+ if FreeCAD is not running in Gui mode do not replace Python std. ou…
Browse files Browse the repository at this point in the history
…tput
  • Loading branch information
wwmayer committed Aug 29, 2015
1 parent c3656ad commit 6a18530
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Main/MainGui.cpp
Expand Up @@ -168,7 +168,10 @@ int main( int argc, char ** argv )
}

Gui::Application::initApplication();
Base::Interpreter().replaceStdOutput();

// Only if 'RunMode' is set to 'Gui' do the replacement
if (App::Application::Config()["RunMode"] == "Gui")
Base::Interpreter().replaceStdOutput();
}
catch (const Base::UnknownProgramOption& e) {
QApplication app(argc,argv);
Expand Down

0 comments on commit 6a18530

Please sign in to comment.