Skip to content

Commit

Permalink
ebook_base.py: avoid shutil.move on windows, #368
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Mar 13, 2022
1 parent e55a394 commit 51a6c4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyglossary/ebook_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,5 +430,8 @@ def write(self):
else:
if self._keep:
shutil.copytree(self._tmpDir, filename)
elif os.sep == "\\":
shutil.copytree(self._tmpDir, filename)
self._glos._cleanupPathList.add(self._tmpDir)
else:
shutil.move(self._tmpDir, filename)

0 comments on commit 51a6c4f

Please sign in to comment.