Skip to content

Commit 944d99b

Browse files
committed
Fix PROGRAM_NAME
1 parent 5bb6e1c commit 944d99b

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/ocrmypdf/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99

1010
from ocrmypdf import helpers, hocrtransform, pdfa, pdfinfo
1111
from ocrmypdf._concurrent import Executor
12+
from ocrmypdf._defaults import PROGRAM_NAME
1213
from ocrmypdf._jobcontext import PageContext, PdfContext
1314
from ocrmypdf._pipelines._common import (
1415
configure_debug_logging,
1516
)
16-
from ocrmypdf._version import PROGRAM_NAME, __version__
17+
from ocrmypdf._version import __version__
1718
from ocrmypdf.api import (
1819
Verbosity,
1920
configure_logging,
@@ -37,7 +38,6 @@
3738

3839
hookimpl = _HookimplMarker('ocrmypdf')
3940

40-
4141
__all__ = [
4242
'__version__',
4343
'BadArgsError',

src/ocrmypdf/_defaults.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66

77
# Default rotation threshold
88
DEFAULT_ROTATE_PAGES_THRESHOLD = 14.0
9+
10+
PROGRAM_NAME = 'OCRmyPDF'

src/ocrmypdf/_metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from pikepdf import __version__ as PIKEPDF_VERSION
1616
from pikepdf.models.metadata import PdfMetadata, encode_pdf_date
1717

18+
from ocrmypdf._defaults import PROGRAM_NAME
1819
from ocrmypdf._jobcontext import PdfContext
19-
from ocrmypdf._version import PROGRAM_NAME
2020
from ocrmypdf._version import __version__ as OCRMYPF_VERSION
2121
from ocrmypdf.languages import iso_639_2_from_3
2222

src/ocrmypdf/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from typing import Any, TypeVar
1111

1212
from ocrmypdf._defaults import DEFAULT_ROTATE_PAGES_THRESHOLD
13-
from ocrmypdf._version import PROGRAM_NAME as _PROGRAM_NAME
13+
from ocrmypdf._defaults import PROGRAM_NAME as _PROGRAM_NAME
1414
from ocrmypdf._version import __version__ as _VERSION
1515

1616
T = TypeVar('T', int, float)

0 commit comments

Comments
 (0)