From 4c666d1454ac79036ee60fdc97d5cd7b5ff56095 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Mon, 25 Sep 2023 14:18:38 +0100 Subject: [PATCH] [Path] Sanity fixed another bug found in testing --- src/Mod/Path/Path/Main/Gui/Sanity.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Path/Path/Main/Gui/Sanity.py b/src/Mod/Path/Path/Main/Gui/Sanity.py index 74e8ef7585..ad49f4ada7 100644 --- a/src/Mod/Path/Path/Main/Gui/Sanity.py +++ b/src/Mod/Path/Path/Main/Gui/Sanity.py @@ -1202,6 +1202,11 @@ class CommandPathSanity: if foundSub: filepath = self.resolveOutputFile(obj) Path.Log.debug("filepath: {}".format(filepath)) + + # Make sure the filepath is fully qualified + if os.path.basename(filepath) == filepath: + filepath = f"{os.path.dirname(FreeCAD.ActiveDocument.FileName)}/{filepath}" + Path.Log.debug("filepath: {}".format(filepath)) base_name = os.path.splitext(filepath)[0] reporthtml = base_name + ".html" else: