Add new app to handle all dependencies

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-05-03 01:12:20 -04:00
parent 11e13cea1d
commit ea3b513ae3
208 changed files with 7847 additions and 45933 deletions
+10 -7
View File
@@ -31,14 +31,17 @@ from .settings import setting_graphics_backend_config
CHUNK_SIZE = 1024
logger = logging.getLogger(__name__)
libreoffice_path = yaml.load(
stream=setting_graphics_backend_config.value, Loader=SafeLoader
).get(
'libreoffice_path', DEFAULT_LIBREOFFICE_PATH
)
try:
LIBREOFFICE = sh.Command(
yaml.load(
stream=setting_graphics_backend_config.value, Loader=SafeLoader
).get(
'libreoffice_path', DEFAULT_LIBREOFFICE_PATH
)
).bake('--headless', '--convert-to', 'pdf:writer_pdf_Export')
LIBREOFFICE = sh.Command(libreoffice_path).bake(
'--headless', '--convert-to', 'pdf:writer_pdf_Export'
)
except sh.CommandNotFound:
LIBREOFFICE = None