Extending the Entry PointΒΆ

When the a tool image is launched, the platform calls a bash script that configures the python environment before running the tool script itself. If your tool requires some paths to be set-up before calling the python code (e.g. configuring environment variables), you can write add it to the entrypoint file as shown below:


# Activate root conda environment
source activate root

# Add your configuration here

# Start command
exec python -m qmenta.sdk.executor $@

As you can see above, we use a python virtual environment (i.e. root) to isolate the requirements of our SDK from any other Python program you may want to include to the tool. We encourage you to use virtual environments wherever possible to avoid unnecessary complications (like incompatibilities between packages).


For more information see Python Virtual Environments - A Primer.