Skip to content

Commit

Permalink
Drop Py_SetProgramName
Browse files Browse the repository at this point in the history
Closes #186
  • Loading branch information
jschueller committed Sep 26, 2024
1 parent a944f45 commit 15e2773
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pythonfmu/pythonfmu-export/src/pythonfmu/PyState.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ namespace pythonfmu
auto const mainPyThread = []() -> PyThreadState* {
auto const justInitialized = !Py_IsInitialized();
if (justInitialized) {
Py_SetProgramName(L"./PythonFMU");
Py_Initialize();
#if PY_VERSION_HEX < 0x03070000
PyEval_InitThreads();
Expand Down Expand Up @@ -82,4 +81,4 @@ namespace pythonfmu

} // namespace pythonfmu

#endif //PYTHONFMU_PYTHONSTATE_HPP
#endif //PYTHONFMU_PYTHONSTATE_HPP

0 comments on commit 15e2773

Please sign in to comment.