mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-15 15:32:36 +02:00
Fix FileNotFoundError on Windows
This commit is contained in:
@@ -148,7 +148,7 @@ class OutputDirectory:
|
|||||||
# If you want longer paths, you will have to add the "\\?\" prefix
|
# If you want longer paths, you will have to add the "\\?\" prefix
|
||||||
# in front of your path. See:
|
# in front of your path. See:
|
||||||
# https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation
|
# 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:
|
else:
|
||||||
self._root = root
|
self._root = root
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user