From b1f92b87e6902d5be0dc08e6db6a8e5fa3615e09 Mon Sep 17 00:00:00 2001
From: Christoph Schmidt <christoph.,schmidt@tugraz.at>
Date: Fri, 5 Jan 2024 17:28:35 +0100
Subject: [PATCH] Added allowed-types for FieldPath

---
 src/confighandler/controller/fields/FieldPath.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/confighandler/controller/fields/FieldPath.py b/src/confighandler/controller/fields/FieldPath.py
index c7500d5..2c8552b 100644
--- a/src/confighandler/controller/fields/FieldPath.py
+++ b/src/confighandler/controller/fields/FieldPath.py
@@ -22,7 +22,9 @@ class FieldPath(Field):
         # self._value_replaced_keywords = self.replace_keywords(self.value)
         self.view = FieldViewPath(self)
         self._input = self.value
-        self._allowed_types = (Path, [str])
+        self._allowed_types = (Path, [pathlib.PurePosixPath, pathlib.PurePath,
+                                      pathlib.PureWindowsPath,
+                                      str])
         # self.ui_btn_opens = []
 
     # ==================================================================================================================
-- 
GitLab