A few days ago I had one of those "Why didn't I see this before?" moments.
Invoking a python package via `python -m package` is simpler and more general. For example:
python -m black -h
There is no need to specify the path to black!
We only
need to ensure that `python` invokes python 3. We can do this with an alias (linux) or .cmd file (windows). Here is my python.cmd file:
"C:\Users\Edward Ream\Python\Python39\python.exe" %*
Now (in devel) Leo's "blacken-files" command invokes black this way:
g.execute_shell_commands(
f"&python -m black --skip-string-normalization {path}")
Edward