I would like to know How to import a modification gopigo.py code.
When I change the source code from gopigo.py to gopipo1.py
How can i import a gopigo.py in robot_web_server.py
Actually, I’m now testing modify the source code from gopigo.py to gopigo1.py.
When i modify the robot_web_server.py as like #import gopigo1.py, It’ll be displayed the "ImportError: No module name gopigo1
I’m looking forward to your reply.
Have a good day.
The gopigo.py that we use, is installed system wide with the setup.py file in the Software/Python folder. All the programs that ask for gopigo.py, are given the library that was installed from there. If you only want to change the header in one project, then I would suggest you to copy and paste the updated gopigo.py library in that project. When you are satisfied with the updated header, you should run the setup.py in the same folder as the updated library and it would make the updated gopigo.py as the default library system wide.