Skip to content

Commit a03ef0a

Browse files
author
Markus Oppmann
committed
1 parent 102a584 commit a03ef0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

textract/parsers/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def _get_available_extensions():
8989
parsers_dir = os.path.join(os.path.dirname(__file__))
9090
glob_filename = os.path.join(parsers_dir, "*" + _FILENAME_SUFFIX + ".py")
9191
# escape backslashes for python 3.6+
92-
glob_filename = glob_filename.replace("//", "////")
92+
glob_filename = glob_filename.replace("\\", "\\\\")
93+
print(glob_filename)
9394
ext_re = re.compile(glob_filename.replace('*', r"(?P<ext>\w+)"))
9495
for filename in glob.glob(glob_filename):
9596
ext_match = ext_re.match(filename)

0 commit comments

Comments
 (0)