Hi All
I think we can learn from Unix/Linux here. Like python, it has a PATH
variable for finding executables. It also has a command 'which'.
According to the man page
<BEGIN>
DESCRIPTION
which returns the pathnames of the files (or links) which would be
executed in the current environment, had its arguments been given as
commands in a strictly POSIX-conformant shell. It does this by
searching the PATH for executable files matching the names of the
arguments. It does not canonicalize path names.
OPTIONS
-a print all matching pathnames of each argument
<END>
Suppose we had a similar 'which' command in Python. It wouldn't by
itself stop things going wrong. But when they do go wrong, it might
help diagnose the problem.
--
Jonathan
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/KVAXAF3OHQFMZXM7DGVV2XUDOCB72X2U/
Code of Conduct: http://python.org/psf/codeofconduct/