we must the code:
def convert_report(self, report, ext):
converted = False
with self.task.lock('$report_conversion'):
try:
from subprocess import Popen, STDOUT, PIPE
if
os.name == "nt":
pass
#regpath = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\soffice.exe"
#root = OpenKey(HKEY_LOCAL_MACHINE, regpath)
#s_office = QueryValue(root, "")
else:
s_office = "soffice"
conversion = Popen([r"C:\Users\dba\Downloads\LibreOfficePortable\App\libreoffice\program\soffice", '--headless', '--convert-to', ext,
report.report_filename, '--outdir', os.path.join(self.work_dir, 'static', 'reports')],
stderr=STDOUT,stdout=PIPE)
Use your path on the above and everything will work.
Enjoy