From commits-return-40905-archive-asf-public=cust-asf.ponee.io@pulsar.apache.org Fri Nov 1 09:24:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B237E180626 for ; Fri, 1 Nov 2019 10:24:04 +0100 (CET) Received: (qmail 11421 invoked by uid 500); 1 Nov 2019 09:24:04 -0000 Mailing-List: contact commits-help@pulsar.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.apache.org Delivered-To: mailing list commits@pulsar.apache.org Received: (qmail 11398 invoked by uid 99); 1 Nov 2019 09:24:04 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Nov 2019 09:24:04 +0000 From: GitBox To: commits@pulsar.apache.org Subject: [GitHub] [pulsar] candlerb edited a comment on issue #5518: python functions cannot find python3 interpreter Message-ID: <157260024405.19543.17089142193044438953.gitbox@gitbox.apache.org> Date: Fri, 01 Nov 2019 09:24:04 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit candlerb edited a comment 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 at least one place where searching in `$PATH` is currently used: ``` ./pulsar-client-cpp/docker/Dockerfile:ENV PATH="/opt/python/${PYTHON_SPEC}/bin:${PATH}" ``` 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: users@infra.apache.org With regards, Apache Git Services