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 self.original = None
def __enter__(self): def __enter__(self):
self.original = Path('.') self.original = Path('.').resolve()
chdir(str(Path(__file__).parent)) chdir(str(Path(__file__).parent.resolve()))
return self return self
def __exit__(self, *args): def __exit__(self, *args):