Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkVenvProcess.h File Reference
#include <MitkPythonSegmentationUIExports.h>
#include <mitkFileSystem.h>
#include <QProcessEnvironment>
#include <QString>
#include <QStringList>

Go to the source code of this file.

Classes

struct  QmitkVenvProcess::Result
 

Namespaces

 QmitkVenvProcess
 Helpers for running an executable from a MITK-managed Python virtual environment as a subprocess.
 

Functions

MITKPYTHONSEGMENTATIONUI_EXPORT QProcessEnvironment QmitkVenvProcess::CleanEnvironment ()
 The current process environment with PYTHONHOME and PYTHONPATH removed. More...
 
MITKPYTHONSEGMENTATIONUI_EXPORT QString QmitkVenvProcess::ToQString (const fs::path &path)
 Lossless conversion of a filesystem path to a QString. More...
 
MITKPYTHONSEGMENTATIONUI_EXPORT Result QmitkVenvProcess::Run (const QString &executable, const QStringList &args, int finishedTimeoutMs=-1)
 Runs executable with args in a clean environment and blocks until it finishes. More...