Skip to content

Commit

Permalink
glossary_v2.py: call _setTmpDataDir inside _read
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 31, 2024
1 parent d4530f1 commit cb8a683
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyglossary/glossary_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,6 @@ def directRead(
filename: str,
**options, # noqa: ANN003
) -> bool:
self._setTmpDataDir(filename)
self._read(
filename=filename,
direct=True,
Expand Down Expand Up @@ -751,6 +750,8 @@ def _read(
formatName = formatName or format
del format

self._setTmpDataDir(filename)

filename = os.path.abspath(filename)
###
inputArgs = self.detectInputFormat(filename, formatName=formatName)
Expand Down Expand Up @@ -1169,8 +1170,6 @@ def _convertPrepare(

showMemoryUsage()

self._setTmpDataDir(args.inputFilename)

readOptions = args.readOptions or {}

self._read(
Expand Down

0 comments on commit cb8a683

Please sign in to comment.