source/text/sbasic/python/python_programming.xhp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0ae4510ed1ad0cdaf9ec52ff6bd4423c436dceae
Author:     Alain Romedenne <alain.romede...@libreoffice.org>
AuthorDate: Thu Dec 8 14:07:59 2022 +0000
Commit:     Alain Romedenne <alain.romede...@libreoffice.org>
CommitDate: Thu Dec 8 14:15:48 2022 +0000

    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.romede...@libreoffice.org>

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">    &quot;&quot;&quot; load 
library and import module</paragraph>

Reply via email to