Configures a project python environment for LibreOffice UNO.
Project description
OOOENV
This project is strictly for LibreOffice python projects that need to set UNO environment.
A project as OOO Development Tools would use this project
See also OOO Development Tools - Develop Docs
Installation
oooenv PyPI
pip install oooenv
Usage
Linux/Mac
In Linux and Mac all that is needed to run a project that requires LibreOffice UNO is to link the UNO files into virtual environment.
To add UNO links to virtual environment run command:
oooenv cmd-link -a
To remove UNO links from virtual environment run command:
oooenv cmd-link -r
Windows
Windows python projects cannot use linking to UNO Files.
In Windows the virtual environment configuration file is manipulated.
The Follow command toggles between original configuration and UNO environment configuration.
oooenv env -t
To update the configuration to match the installed verison of LibreOffice's python.
This command should not be run until oooenv env -t
has be run at least once.
oooenv update --update
If virtual environment is managed by Poetry then it will be necessary to toggle into original config before running poetry update
.
When updates are done just run command again to toggle back to UNO environment configuration.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.