Skip to content

Commit

Permalink
Fix PROGRAM_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Aug 31, 2024
1 parent 5bb6e1c commit 944d99b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ocrmypdf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

from ocrmypdf import helpers, hocrtransform, pdfa, pdfinfo
from ocrmypdf._concurrent import Executor
from ocrmypdf._defaults import PROGRAM_NAME
from ocrmypdf._jobcontext import PageContext, PdfContext
from ocrmypdf._pipelines._common import (
configure_debug_logging,
)
from ocrmypdf._version import PROGRAM_NAME, __version__
from ocrmypdf._version import __version__
from ocrmypdf.api import (
Verbosity,
configure_logging,
Expand All @@ -37,7 +38,6 @@

hookimpl = _HookimplMarker('ocrmypdf')


__all__ = [
'__version__',
'BadArgsError',
Expand Down
2 changes: 2 additions & 0 deletions src/ocrmypdf/_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@

# Default rotation threshold
DEFAULT_ROTATE_PAGES_THRESHOLD = 14.0

PROGRAM_NAME = 'OCRmyPDF'
2 changes: 1 addition & 1 deletion src/ocrmypdf/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from pikepdf import __version__ as PIKEPDF_VERSION
from pikepdf.models.metadata import PdfMetadata, encode_pdf_date

from ocrmypdf._defaults import PROGRAM_NAME
from ocrmypdf._jobcontext import PdfContext
from ocrmypdf._version import PROGRAM_NAME
from ocrmypdf._version import __version__ as OCRMYPF_VERSION
from ocrmypdf.languages import iso_639_2_from_3

Expand Down
2 changes: 1 addition & 1 deletion src/ocrmypdf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, TypeVar

from ocrmypdf._defaults import DEFAULT_ROTATE_PAGES_THRESHOLD
from ocrmypdf._version import PROGRAM_NAME as _PROGRAM_NAME
from ocrmypdf._defaults import PROGRAM_NAME as _PROGRAM_NAME
from ocrmypdf._version import __version__ as _VERSION

T = TypeVar('T', int, float)
Expand Down

0 comments on commit 944d99b

Please sign in to comment.