candlerb commented on issue #5518: python functions cannot find python3 
interpreter
URL: https://github.com/apache/pulsar/issues/5518#issuecomment-548721196
 
 
   How about adding a setting to broker.conf / standalone.conf? e.g.
   
   ```
   python_interpreter=/usr/bin/python
   ```
   
   However I notice some places where searching in  `$PATH` search is currently 
required:
   
   ```
   ./pulsar-client-cpp/docker/Dockerfile:ENV 
PATH="/opt/python/${PYTHON_SPEC}/bin:${PATH}"
   ./build/docker/Dockerfile:ENV PATH "$PATH:/usr/local/rvm/bin"
   ```
   
   So I suggest:
   
   1. Default is `python_interpreter=python`
   2. If the setting starts with slash, it's an absolute path (avoids some 
edge-case security issues)
   3. Otherwise search for it in `$PATH` as today

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to