Extract pipeline out of __main__.py and into pipeline.py

This leaves __main__.py to handle command line arguments while pipeline.py
runs the pipeline - mostly. They are still somewhat intertwined, with
__main__.py doing essential things for pipeline.py, etc., and some
helper functions that could go in their own module.

All tests pass after this major refactor.
This commit is contained in:
James R. Barlow
2016-12-09 16:17:12 -08:00
parent f0f889440b
commit 4c677e6c47
3 changed files with 1061 additions and 1040 deletions
+2
View File
@@ -3,6 +3,8 @@ import os
from collections.abc import Iterable
import pkg_resources
PROGRAM_NAME = 'ocrmypdf'
VERSION = pkg_resources.get_distribution('ocrmypdf').version
+15 -1040
View File
File diff suppressed because it is too large Load Diff
+1044
View File
File diff suppressed because it is too large Load Diff