Files
mayan-edms/mayan/apps/document_parsing/literals.py
Roberto Rosario dc255da362 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>
2018-12-06 05:08:35 -04:00

9 lines
205 B
Python

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'