/
How to use Jython libraries
How to use Jython libraries
Description
If you need to use some of the Jython/Python libraries normally found in the LIB directory of an install, then you have at least 2 choices both require a Jython install on the Confluence server. Jython needs to know the path to the library files.
Dynamic in code
import sys sys.path.append("/<path to Jython install>/LIB")
- Always available - environment variable
Steps
- Install Jython on your confluence server
- Recommend setting environment variable
- Set JYTHONPATH to the library directory of your install, example: /<path to Jython install>/LIB
- PYTHONPATH also works
- Restart Confluence with the environment variable set
- Set JYTHONPATH to the library directory of your install, example: /<path to Jython install>/LIB
References
Related content
How to use Jython libraries
How to use Jython libraries
More like this
Setting Up a Connection for the Salesforce Package
Setting Up a Connection for the Salesforce Package
More like this
Release Notes 4.7
Release Notes 4.7
More like this
How to Add a ClassPath in a Groovy Macro Using the Scripting for Confluence app
How to Add a ClassPath in a Groovy Macro Using the Scripting for Confluence app
More like this
Configuring an external renderer
Configuring an external renderer
More like this
Configuring an external renderer
Configuring an external renderer
More like this