Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Oppmann committed Nov 21, 2023
1 parent 102a584 commit a03ef0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion textract/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def _get_available_extensions():
parsers_dir = os.path.join(os.path.dirname(__file__))
glob_filename = os.path.join(parsers_dir, "*" + _FILENAME_SUFFIX + ".py")
# escape backslashes for python 3.6+
glob_filename = glob_filename.replace("//", "////")
glob_filename = glob_filename.replace("\\", "\\\\")
print(glob_filename)
ext_re = re.compile(glob_filename.replace('*', r"(?P<ext>\w+)"))
for filename in glob.glob(glob_filename):
ext_match = ext_re.match(filename)
Expand Down

0 comments on commit a03ef0a

Please sign in to comment.