Skip to content

Commit abe9752

Browse files
committed
Bumped version
1 parent 73ba69d commit abe9752

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/markitdown/__about__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2024-present Adam Fourney <[email protected]>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = "0.0.1a3"
4+
__version__ = "0.0.1a4"

src/markitdown/__main__.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: MIT
44
import argparse
55
import sys
6+
import shutil
67
from textwrap import dedent
78
from .__about__ import __version__
89
from ._markitdown import MarkItDown, DocumentConverterResult
@@ -74,16 +75,18 @@ def main():
7475
parser.add_argument("filename", nargs="?")
7576
args = parser.parse_args()
7677

78+
which_exiftool = shutil.which("exiftool")
79+
7780
if args.use_docintel:
7881
if args.endpoint is None:
7982
raise ValueError(
8083
"Document Intelligence Endpoint is required when using Document Intelligence."
8184
)
8285
elif args.filename is None:
8386
raise ValueError("Filename is required when using Document Intelligence.")
84-
markitdown = MarkItDown(docintel_endpoint=args.endpoint)
87+
markitdown = MarkItDown(exiftool_path=which_exiftool, docintel_endpoint=args.endpoint)
8588
else:
86-
markitdown = MarkItDown()
89+
markitdown = MarkItDown(exiftool_path=which_exiftool)
8790

8891
if args.filename is None:
8992
result = markitdown.convert_stream(sys.stdin.buffer)

0 commit comments

Comments
 (0)