Run ExecutePreprocessor using the current interpreter

I’m using notebooks as part of a desktop application. The application is distributed using pyinstaller, which will produces an executable for the gui.

The problem is that ExecutePreprocessor tries to start its own python kernel, which fails because is not available in the deployed version.

Ideally I just want to execute the notebook cells using the active python interpreter. Is there a way to do that? I thought about starting my own kernel and then specifying that to the ExecuteProcessor but can not get that working.