optimize maixtool

This commit is contained in:
Neucrack
2024-07-11 14:54:54 +08:00
parent 967b1ebab9
commit 819c33967e
3 changed files with 13 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ def serve(pkg_path, port = 8888):
os.makedirs("dist", exist_ok=True)
for local_ip in ips:
# show qr code
url = "http://{}:{}".format(local_ip, local_port)
url = "http://{}:{}/?".format(local_ip, local_port)
print("Scan the QR code to download the program:")
# generate qr code
img = qrcode.make(url)

View File

@@ -1,4 +1,4 @@
__version__ = "1.3.2"
__version__ = "1.3.3"

11
tools/maixtool/test.py Normal file
View File

@@ -0,0 +1,11 @@
from maixtool.maixcdk import main as _maixcdk_main
from maixtool.maixtool import main as _maixtool_main
def main():
_maixtool_main()
def maixcdk_main():
_maixcdk_main()
if __name__ == '__main__':
main()