VSCode Python Custom Modules

I’ve been working on ways to make writing programs for the robot more streamlined and readable. In my research, I see that in some C++ projects there is an “include” section that allows people to define devices in one .cpp file and then use them in their main .cpp file (or like here with a devices.h file with the main.cpp). If I understand it correctly, this is similar to making “devices.py” and then “import devices” to access them. When I do this, the brain gives me an error saying the module is not found.

The only reason I ask is that I had a program that was setup with a devices file and imported them, and then ran correctly afterwards. Let me know if any more information would help.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.