Commit e466d16
committed
Add __main__.py to allow running amifuse as a Python module
Without __main__.py, "python3 -m amifuse" fails with:
No module named amifuse.__main__; 'amifuse' is a package and
cannot be directly executed
Add the module entry point and set prog="amifuse" in ArgumentParser
so that usage messages show "amifuse" rather than "__main__.py".
Document "python3 -m amifuse" as an alternative to pip-installing
the package, useful for development and debugging from a local
checkout.1 parent 24f47aa commit e466d16
3 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
70 | 78 | | |
71 | 79 | | |
72 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2355 | 2355 | | |
2356 | 2356 | | |
2357 | 2357 | | |
| 2358 | + | |
2358 | 2359 | | |
2359 | 2360 | | |
2360 | 2361 | | |
| |||
0 commit comments