I was trying to install the leo vscode plugin, and noted that it requires leo installation directory etc.
If you have installed Leo with pip, this could all be optional, as you get the directory by:
python -c "import leo; import os; print(os.path.dirname(leo.__file__))"
(or somesuch)
Similarly, leo editor launch could be done by creating __main__.py in leo, then you could launch leo by doing "python -m leo" without any knowledge about directories