Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 42fdf043 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish comments.

parent 46ad228b
......@@ -35,12 +35,11 @@
fi.close()
#
# convert the HTML in ODT file
# the command Xvbf is available only in the server
# not in the development area
# convert the HTML in ODT file using libreoffice
#
fi_tmp = TemporaryFile()
# create the virtual X11 environment on the server
if os.path.exists('/usr/bin/Xvfb'):
cmd = "Xvbf :1 -screen 0 800x600x8 & "
cmd += "libreoffice --nologo --headless --invisible --display :1.0 --convert-to odt "
......@@ -48,10 +47,13 @@
call(cmd, stdout=fi_tmp, shell=True)
# development area in which X11 is running
else:
cmd = ["libreoffice", "--headless", "--convert-to", "odt", fhtml]
call(cmd, stdout=fi_tmp)
pass
fodt = '%s.odt' % froot
if os.path.exists(fodt):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment