diff options
author | Alain Romedenne <alain.romedenne@libreoffice.org> | 2022-12-08 14:07:59 +0000 |
---|---|---|
committer | Alain Romedenne <alain.romedenne@libreoffice.org> | 2022-12-08 14:15:48 +0000 |
commit | 0ae4510ed1ad0cdaf9ec52ff6bd4423c436dceae (patch) | |
tree | abbca1564232b4bd056ba65fa8d144f14a82cf81 | |
parent | 18924c3c7275e794703997e315910d99395dcd69 (diff) |
Fix to python script sample
Change-Id: I9e79c85aecde08225212fd7985d32bd55a5f7bf1
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143724
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
-rw-r--r-- | source/text/sbasic/python/python_programming.xhp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/text/sbasic/python/python_programming.xhp b/source/text/sbasic/python/python_programming.xhp index 71ba96cbc1..1a85936012 100644 --- a/source/text/sbasic/python/python_programming.xhp +++ b/source/text/sbasic/python/python_programming.xhp @@ -306,7 +306,7 @@ <paragraph role="paragraph" id="N1298">Similarly to %PRODUCTNAME Basic that supports browsing and dynamic loading of libraries, Python libraries can be explored and imported on demand. For more information on library containers, visit <link href="https://api.libreoffice.org/">%PRODUCTNAME Application Programming Interface</link> (API) or download <link href="https://www.libreoffice.org/download/download/">%PRODUCTNAME Software Development Kit</link> (SDK).</paragraph> <paragraph role="paragraph" id="N3299">Importing a Python document embedded module is illustrated below, exception handling is not detailed:</paragraph> <pycode> - <paragraph role="pycode" localize="false" id="N1300">import uno, sys</paragraph> + <paragraph role="pycode" localize="false" id="N1300">import uno, sys, zipimport</paragraph> <paragraph role="pycode" localize="false" id="N3301"></paragraph> <paragraph role="pycode" localize="false" id="N0302">def load_library(library_name: str, module_name=None):</paragraph> <paragraph role="pycode" id="N0303"> """ load library and import module</paragraph> |