Using EsPy or Thonny IDE it is possible to import modules from a computer disk during debugging, but not from Flash?
Because it gives an error that the module was not found

ImportError: no module named 'bla-bla'
If I understand correctly, you want to have the MicroPython device access the host PC's filesystem? The simple answer is "not really" but... here are some options that might be interesting (that don't involve Thonny or EsPy).
Sorry I'm not sure what you mean then... where is "a local directory" if not the host PC?Listian wrote: ↑Tue Apr 21, 2020 2:41 pmNot this way)
As I understand the development environment send commands to esp through the com-port.
It would be logical to add functionality that, when importing a module, checked for its presence on esp, and if it wasn’t there, it would start from a local directory.
It's a bit complicated because it's not just a matter of executing the file -- it needs to be done in a way that it still looks like a module.