"import spot.foo" may now load "spot-extra/foo.py"

This is needed for tcltl.

* python/spot/__init__.py: Alter __path__ to add any spot-extra/
directory we find.
* NEWS: Mention this.
This commit is contained in:
Alexandre Duret-Lutz 2019-10-02 13:34:44 +02:00
parent 865427c73b
commit 2960b8138c
2 changed files with 16 additions and 0 deletions

6
NEWS
View file

@ -2,6 +2,12 @@ New in spot 2.8.2.dev (not yet released)
Nothing yet.
Python:
- Doing "import spot.foo" will now load any spot-extra/foo.py on
Python's search path. This can be used to install third-party
packages that want to behave as plugins for Spot.
New in spot 2.8.2 (2019-09-27)
Command-line tools: