mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[jythonscripting] Updated documentation (#16541)
Signed-off-by: Holger Hees <holger.hees@gmail.com>
This commit is contained in:
parent
08f210e5d8
commit
bfa54435da
@ -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.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
|
## 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.
|
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:
|
If you create an empty file called `test.py`, you will see a log line with information similar to:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
Loading…
Reference in New Issue
Block a user