Skip to content

Commit

Permalink
update code to use the appimage stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
etchegom committed Mar 27, 2024
1 parent ab72b6f commit 1b2167b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conventions/services/convention_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ def generate_pdf(file_stream: io.BytesIO, convention: Convention):
file_stream, convention_dirpath, convention_docx_filename
)
pdf_path = f"{convention_dirpath}/{convention_pdf_filename}"
# FIXME: use a valid command
subprocess.run(
[
settings.LIBREOFFICE_EXEC,
"--headless",
"--convert-to",
"pdf:writer_pdf_Export",
"--outdir",
Expand Down
6 changes: 5 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,4 +608,8 @@ def get_env_variable(name, cast=str, default=""):
default="https://siap-logement.atlassian.net/servicedesk/customer/portal/3/group/8/create/14",
)

LIBREOFFICE_EXEC = get_env_variable("LIBREOFFICE_EXEC")
# LibreOffice
LIBREOFFICE_EXEC = get_env_variable(
"LIBREOFFICE_EXEC",
default="/app/vendor/libreoffice/opt/libreoffice7.3/program/soffice",
)

0 comments on commit 1b2167b

Please sign in to comment.