Open hmaerki opened 2 months ago
I think an exception is fine, but perhaps not a SystemExit.
I think an exception is fine, but perhaps not a SystemExit. This implies, that mpbuild may not be used as a python package (just as external program)...
Again: I can not see any reason why to do do an assertion on the current directory while module loading.
Do you want me to create a PR which fixes this?
This has been partially resolved with #28 but I want to take it a little further before closing this issue.
Bug
When I
import pyboard
in octoprobe, I get above exception.Proposed fix
Do not throw the exception while importing the module. Throw the exception in the command line module.
Pass the root of micropython source tree to
build.build_board()
and other some functions.This will allow to use mpbuild without the need to
cd
.