Brad Schoening created CASSANDRA-17832:
------------------------------------------
Summary: Change bin/cqlsh.py shebang to use PATH with env prefix
Key: CASSANDRA-17832
URL: https://issues.apache.org/jira/browse/CASSANDRA-17832
Project: Cassandra
Issue Type: Improvement
Reporter: Brad Schoening
For cqlsh.py this:
#!/usr/bin/env python
is preferable to the current hard coded /usr/bin/python3 which doesn't take
into account the python interpreter preferences in the users PATH.
'{{{}env{}}}' is a system binary in {{/usr/bin}} that searches {{$PATH}} for
strings containing the provided argument and returns the first instance it
finds. In the above syntax, {{env}} will search for the first instance of
{{python}} in {{$PATH}} and return it.
This is aligned with the recommendations in https://peps.python.org/pep-0394/
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]