mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-01-01 01:31:43 +00:00
12 lines
230 B
Python
12 lines
230 B
Python
#!/usr/bin/env python3
|
|
# © 2016 James R. Barlow: github.com/jbarlow83
|
|
|
|
"""Wrappers to manage subprocess calls"""
|
|
|
|
import os
|
|
|
|
|
|
def get_program(name):
|
|
envvar = 'OCRMYPDF_' + name.upper()
|
|
return os.environ.get(envvar, name)
|