tools/mpremote: Allow running mpremote with `python -m`.

This is helpful because some scripts are likely to use mpremote with a
specific python path.
This commit is contained in:
Waterlens 2022-03-18 17:47:24 +08:00 committed by Damien George
parent 3e70be8ee9
commit 4c252ae067
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
import sys
from mpremote import main
sys.exit(main.main())