Main: [skip ci] partially fix issue 0004765: FreeCAD failed to build on MSVC with std:c++latest

This commit is contained in:
wmayer
2021-11-06 14:31:17 +01:00
parent 4543c98267
commit 6d2aa6acc9

View File

@@ -108,7 +108,7 @@ int main( int argc, char ** argv )
std::string appName = App::Application::Config()["ExeName"];
std::stringstream msg;
msg << "While initializing " << appName << " the following exception occurred: '" << e.what() << "'\n\n";
msg << "Python is searching for its runtime files in the following directories:\n" << Py_GetPath() << "\n\n";
msg << "Python is searching for its runtime files in the following directories:\n" << Py_EncodeLocale(Py_GetPath(),nullptr) << "\n\n";
msg << "Python version information:\n" << Py_GetVersion() << "\n";
const char* pythonhome = getenv("PYTHONHOME");
if ( pythonhome ) {