workflows: isolate libreoffice UserInstallation directory (#44787)
This commit is contained in:
parent
ea5a61cf53
commit
8dfa5c8c62
|
@ -80,7 +80,8 @@ try:
|
|||
infile.flush()
|
||||
for i in range(3):
|
||||
lo_output = subprocess.run(
|
||||
['libreoffice', '--headless', '--convert-to', 'pdf',
|
||||
['libreoffice', '-env:UserInstallation=file://%s' % temp_dir,
|
||||
'--headless', '--convert-to', 'pdf',
|
||||
infile.name, '--outdir', temp_dir],
|
||||
check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
if os.path.exists(infile.name + '.pdf'):
|
||||
|
|
Loading…
Reference in New Issue