Closed goodmami closed 8 months ago
I didn't know originally that __main__.py is a standard thing in Python, and called the module main.py. This means that the following doesn't work:
__main__.py
main.py
$ python -m delphin [...]: No module named delphin.__main__; 'delphin' is a package and cannot be directly executed
Instead, the following is necessary:
$ python -m delphin.main usage: delphin [-h] [-V] ... [...]
In practice this is not a big deal because installing PyDelphin makes the delphin command available, but it's good to follow best-practices.
delphin
I didn't know originally that
__main__.py
is a standard thing in Python, and called the modulemain.py
. This means that the following doesn't work:Instead, the following is necessary:
In practice this is not a big deal because installing PyDelphin makes the
delphin
command available, but it's good to follow best-practices.