weixin_39605414 2020-11-20 23:28
浏览 0

microPython: Sync files with device ?!?

Original report by Jens Diemer (Bitbucket: jedie GitHub: jedie ).

Thonny is great for microPython as long as you only change "main.py" and "boot.py".

But when a project gets bigger, you want to split the sources into several files and subdirectories.

Here you can't do anything with thonny at the moment. Except upload single files thanks to #518.

Here you actually need a kind of project management. I don't know if this is out of scope for thonny?

该提问来源于开源项目:thonny/thonny

  • 写回答

5条回答 默认 最新

  • weixin_39605414 2020-11-20 23:28
    关注

    The concept of project could be relevant with regular CPython backend as well, but it's not clear how to do it so that it is lightweight enough.

    In case of syncing with the device, I imagine a hybrid approach:

    • a separate view which displays files on the device and allows uploading and downloading
    • automatic sync of dependencies (eg. each time I run a main script which imports a module from same directory, the module gets uploaded automatically)
    评论

报告相同问题?