Subprocess call in Python interpreter results in memory corruption

Starting with r26351, a new public API allowing to get the startup environment is available.

  • In c++: qSlicerCoreApplication::startupEnvironment()
  • In python: slicer.util.startupEnvironment()

We are still discussing some of the internals but that will not affect the public API.