Fix TempWorkDir not actually working

This commit is contained in:
Lonami Exo 2019-07-17 09:34:17 +02:00
parent ec093f90e7
commit eb02eadb9f

View File

@ -30,8 +30,8 @@ class TempWorkDir:
self.original = None
def __enter__(self):
self.original = Path('.')
chdir(str(Path(__file__).parent))
self.original = Path('.').resolve()
chdir(str(Path(__file__).parent.resolve()))
return self
def __exit__(self, *args):