pentaho-labs / pentaho-cpython-plugin

This is a PDI plugin that allows execution of Python code.
Apache License 2.0
32 stars 19 forks source link

How to specify python path #21

Open plup opened 6 years ago

plup commented 6 years ago

I just saw the last release (1.4). The ability to set the python path is great to work across environment. Thank you.

I just struggle to find where I can set the kettle variable. I didn't see any revelant names in the kettle.properties.

Can somebody point me in the right direction please ?

eicherjc commented 6 years ago

It looks like you should set KETTLE_CPYTHON_COMMAND_PROPERTY_KEY in the kettle.properties. Set that property to the Python executable you'd prefer the Pentaho CPython plugin to use.

You don't see KETTLE_CPYTHON_COMMAND_PROPERTY_KEY in the kettle.properties because it's not one of the default values. Add it as a new value and the Pentaho CPython plugin will pick it up.

eicherjc commented 6 years ago

Err, no. You need to set "pdi.cpython.command" in the kettle.properties. Set that property to be the path all the way to the actual executable.