Closed LudovicRousseau closed 6 years ago
Another idea after this change is to rename yocto_colorled
into colorled
. Since the file is inside the yocto_api/
directory there is no name conflict.
From a Python script file just do:
from yocto_api.colorled import *
Hi,
Few years ago, when we started this library we had no experience in python and we chose this unconventional file structure, because it is most similar to C++ and PHP language and make our libraries homogeneous
Your modifications are interesting, but we will not apply these changes. Here is why:
I hope that you understand our position.
I did not know the PyPI package. I suggest to mention it in http://www.yoctopuce.com/FR/libraries.php or at least in the README.md
file of this project.
I've updated the README.md.
The idea is to install the wrapper with a minimal impact in the site-packages directory.
I also provide a Python script to install the files.
Once the wrapper is installed it can be used with a simple line: