From 07a75a37c31e80f8e6b90500cde97d356328d553 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 25 May 2021 15:57:03 +0000 Subject: [PATCH] Fix FileNotFoundError on Windows --- PFERD/output_dir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PFERD/output_dir.py b/PFERD/output_dir.py index ea3a3e0..7883ee0 100644 --- a/PFERD/output_dir.py +++ b/PFERD/output_dir.py @@ -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