summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaterlens <waterlens@waterlens.moe>2022-03-18 17:47:24 +0800
committerDamien George <damien@micropython.org>2022-03-30 15:29:26 +1100
commit4c252ae067a4798fe11c2ce56a9734c1e64846a8 (patch)
tree5ea89741e82fdb22f4e1a9fac6ca22f52d5153ad
parent3e70be8ee9973cffb6b9e8b721bf13b42510b739 (diff)
tools/mpremote: Allow running mpremote with `python -m`.
This is helpful because some scripts are likely to use mpremote with a specific python path.
-rw-r--r--tools/mpremote/mpremote/__main__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mpremote/mpremote/__main__.py b/tools/mpremote/mpremote/__main__.py
new file mode 100644
index 000000000..a91ff67b1
--- /dev/null
+++ b/tools/mpremote/mpremote/__main__.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python3
+
+import sys
+from mpremote import main
+
+sys.exit(main.main())