@gaviota I'm trying to. But M5stack:"ERROR no module named"
Until I understand what is wrong.
Best posts made by Alexander
-
RE: How to import my own module into a project?
Latest posts made by Alexander
-
RE: How to import my own module into a project?
@gaviota Well thank you.
I'm tired of my own inability to solve this problem. So far, I just threw all the functions into the project.
Later I will do so, as you advise. -
RE: How to import my own module into a project?
@gaviota I'm trying to. But M5stack:"ERROR no module named"
Until I understand what is wrong. -
RE: How to import my own module into a project?
I have a file.py. There are 20 custom functions in the file. This is a lot of code. Many of the functions call each other in calculations.
In any new M5flow project, I just want to write "import file" first. And that's all.
I don't want to rewrite all the functions separately for the M5flow. Or insert all this code into each new project manually. Or create blocks for each function.
I saved the file to the device manager file. But still importing the file doesn't work.
It seemed to me that there should be a simple and obvious solution. This is all very strange.
maybe I just need to save the file in the appropriate format in the appropriate directory Uim5flow installed on the pc? -
How to import my own module into a project?
Hello. I'm new to m5stack. I have a possibly simple question. how to import my own modules in a project? in block or python modes?