dphans / micropython-ide-vscode

Micropython integrated development for VSCode
Apache License 2.0
57 stars 34 forks source link

Add a root path for a project files #15

Closed rainum closed 5 years ago

rainum commented 5 years ago

This PR adds a a root path option to a .micropythonrc config. Project structure is changed to this:

/myproject
   .micropythonrc
    /myproject
        boot.py
        main.py

Having a root path for python files (myproject/myproject in this case) simplifies filtering and uploading files a lot since you don't need to ignore entire contents of your project's root eg: .git, .vscode, readme.md etc. Especially when you work with two files only (in most cases at least): boot.py and main.py.

Also this PR normalizes all paths for REPL. For example: it was impossible before to delete a folder or file with spaces in the name during data formatting process.

Some refactoring and readme update are present as well.

P.S. @dphans you did a good job! I like this project a lot and hope to see it growing!