LibreOffice 7.2 Yardım
The Python script files are stored in the filesystem, in folders controlled by LibreOffice. The macros can be started at installation, user or file level.
Refer to Getting Session Information in order to get programmatic access to Python script locations.
Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here.
The LibreOffice Macros container location in the file system depends on the operating system:
For Windows: {Installation}\share\Scripts\python.
For Linux and macOS: {Installation}/share/Scripts/python.
This container is accessible only by the LibreOffice user. Any open document can access macros stored the container. Macros in this location are stored in the LibreOffice user profile.
The My Macros container location is in the user space and depends on the operating system:
Windows için,
%APPDATA%\LibreOffice\4\user\Scripts\python.
Linux ve macOS için,
$HOME/.config/libreoffice/4/user/Scripts/python.
Belge makroları belgeye gömülüdür ve yalnızca belge açıkken erişilebilir.
BASIC makroları gibi Python makroları da kütüphanelerde, modüllerde ve makrolarda düzenlenebilir.
Kütüphaneler, konteyner ağacındaki klasörlerdir. Bir kitaplık oluşturmak için hedef konteynerde bir klasör ekleyin. Kütüphane ismi klasör ismidir.
A module is a python file in the library or the container. Create a module adding a file in the container.
Bir makro, modülde bir python nesnesidir.