From f0e246ceeaf9410a4c100001e299f1ec511c75b5 Mon Sep 17 00:00:00 2001 From: Alexis Pojomovsky Date: Wed, 6 Jun 2018 10:29:10 -0300 Subject: [PATCH] Added link to comment with insights about the issue --- src/backend/simulation_runner.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/simulation_runner.cc b/src/backend/simulation_runner.cc index e3a5de9ea..0241c4e0a 100644 --- a/src/backend/simulation_runner.cc +++ b/src/backend/simulation_runner.cc @@ -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(); }