Fix FileNotFoundError on Windows

This commit is contained in:
Joscha 2021-05-25 15:57:03 +00:00
parent f85b75df8c
commit 07a75a37c3

View File

@ -148,7 +148,7 @@ class OutputDirectory:
# If you want longer paths, you will have to add the "\\?\" prefix
# in front of your path. See:
# https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation
self._root = Path("\\\\?\\" + str(root))
self._root = Path("\\\\?\\" + str(root.absolute()))
else:
self._root = root