Multiple apps: Default binary path by platform

Use Python's platform library to detect the operating system and
use different default paths for the binary dependencies.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-06 05:08:35 -04:00
parent ef126d56b2
commit dc255da362
7 changed files with 44 additions and 11 deletions

View File

@@ -0,0 +1,8 @@
from __future__ import unicode_literals
import platform
if platform.system() == 'OpenBSD':
DEFAULT_PDFTOTEXT_PATH = '/usr/local/bin/pdftotext'
else:
DEFAULT_PDFTOTEXT_PATH = '/usr/bin/pdftotext'