[jythonscripting] Updated documentation (#16541)

Signed-off-by: Holger Hees <holger.hees@gmail.com>
This commit is contained in:
Holger Hees 2024-03-18 20:05:57 +01:00 committed by GitHub
parent 08f210e5d8
commit bfa54435da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,13 +4,13 @@ This add-on provides [Jython](https://www.jython.org/) 2.7 that can be used as a
The `python.home` system property is set to the path of the add-on.
The `python.path` system property is set to `$OPENHAB_CONF/automation/lib/python`, but any existing `python.path` will be appended to it.
The `python.path` system property is set to `$OPENHAB_CONF/automation/jython/lib`, but any existing `python.path` will be appended to it.
## Creating Jython Scripts
When this add-on is installed, you can select Jython as a scripting language when creating a script action within the rule editor of the UI.
Alternatively, you can create scripts in the `automation/jsr223` configuration directory.
Alternatively, you can create scripts in the `automation/jython` configuration directory.
If you create an empty file called `test.py`, you will see a log line with information similar to:
```text