Commit 96f993f6 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

use path.unlink() rather than os.remove()

parent 752522cd
...@@ -27,7 +27,7 @@ class BookContext: ...@@ -27,7 +27,7 @@ class BookContext:
return self return self
def __exit__(self, *args): def __exit__(self, *args):
os.remove(self.filepath) self.filepath.unlink()
os.chdir(self.initial_path) os.chdir(self.initial_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment