make python -m chia work (#14785)

<!-- Merging Requirements:
- Please give your PR a title that is release-note friendly
- In order to be merged, you must add the most appropriate category
Label (Added, Changed, Fixed) to your PR
-->
<!-- Explain why this is an improvement (Does this add missing
functionality, improve performance, or reduce complexity?) -->
### Purpose:

Make it so `python -m chia` works. This makes it easier to subprocess
such as `subprocess.run([sys.executable, "-m", "chia"], check=True)`
when we need to.

<!-- Does this PR introduce a breaking change? -->
### Current Behavior:



### New Behavior:



<!-- As we aim for complete code coverage, please include details
regarding unit, and regression tests -->
### Testing Notes:



<!-- Attach any visual examples, or supporting evidence (attach any
.gif/video/console output below) -->
This commit is contained in:
Justin England 2023-04-11 14:41:33 -06:00 committed by GitHub
commit b8fa374150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
chia/__main__.py Normal file
View File

@ -0,0 +1,5 @@
from __future__ import annotations
from chia.cmds.chia import main
main()