Skip to content

Commit

Permalink
Added link to comment with insights about the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Pojomovsky committed Jun 6, 2018
1 parent 1f5510b commit f0e246c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/simulation_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ SimulatorRunner::SimulatorRunner(
// it would end up into a segmentation fault. This initialization should
// only occur if the SimulatorRunner class is instantiated from within a
// python script, which is checked in the if statement.
// In comment below, a similar approach to the one used here is suggested:
// https://github.com/pybind/pybind11/issues/1360#issuecomment-385988887
if (Py_IsInitialized()) {
pybind11::detail::get_internals();
}
Expand Down

0 comments on commit f0e246c

Please sign in to comment.