The source project of this merge request has been removed.
Merged requested to merge (removed):patch-1 into master
Without this patch, running the script from custom Python environments could fail. It has been seen in cases where users redefine the PYTHONHOME environment variable for their jobs.
This patch makes sure that the python version used is the appropriate according to the environment.