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

This commit is contained in:
wmayer
2021-12-20 11:09:48 +01:00
committed by Uwe
parent b0ae197937
commit e238e2f257
+1 -1
View File
@@ -101,7 +101,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 ) {