pyuno/source/officehelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 61337efb8c6a434a88a82dd2819edf600e867aa4 Author: Alain Romedenne <alain.romede...@libreoffice.org> AuthorDate: Wed Apr 3 14:01:55 2024 +0100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Apr 3 17:50:11 2024 +0200 minor fixes to officehelper.py - erroneous code sample in code comment -retry delays - fix when raising OSError exception - undefined variable Change-Id: I2cae4e8b6bbb3153e79f290ae1d316aa22a86b4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165714 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/pyuno/source/officehelper.py b/pyuno/source/officehelper.py index ccdd55590625..882d0f65531f 100644 --- a/pyuno/source/officehelper.py +++ b/pyuno/source/officehelper.py @@ -109,7 +109,7 @@ def bootstrap(soffice=None, delays=(1, 3, 5, 7), report=lambda *args: None): + Report processing in console import officehelper as oh - ctx = oh.bootstrap(delays=(5,10,15,20),report=print) # every 5 sec. + ctx = oh.bootstrap(delays=(5,10,15,20),report=print) # wait 5, 10, 15 and 20 sec. # your code goes here iii. Use a specific LibreOffice copy @@ -119,6 +119,7 @@ def bootstrap(soffice=None, delays=(1, 3, 5, 7), report=lambda *args: None): # your code goes here """ try: + process = None # used in except clause if soffice: # soffice fully qualified path as parm sOffice = soffice else: # soffice script used on *ix, Mac; soffice.exe used on Win