Hi,
I am using spyder as a Python IDE and therefore I am using it with Jython for openhab, too.
Always being fond of the concept of libraries I quickly created a library folder for my jython scripts.
To make them usable from the scripts folder the path has to be added to the startup arguments of openhab,
e.g. add -Dpython.path="configurations/scripts/lib"
to use libraries in the lib- folder.
Unfortunately the libraries were not automatically found from the spyder-IDE.
I just figured out how to include them:
-
Go to the PYTHONPATH manager:
-
Add the path to your lib-folder
-
Enjoy writing rules with automatic syntax check, code completion, etc.