July 22, 2020
10:40 a.m.
On Tue, 21 Jul 2020, at 21:50, David Mathog wrote:
./lib/python3.6/site-packages/pip/_vendor/appdirs.py:#!/usr/bin/env python
Python packaging tools like pip generally differentiate between *scripts*, which are installed to be run from the command line, and *modules*, which are imported from other Python code. Files under site-packages are modules. Any special handling for shebangs, execute bits, or Windows .exe wrappers is usually done only for scripts. It's not unusual to see a shebang in modules - I think some editors put it in whenever you create a new Python file. But it doesn't usually do anything. If you want to run a module directly, the normal way now is with "python -m", which doesn't use the shebang. Thomas