[Path] Sanity fix based on user feedback and further testing...

...of stacked substitutions and static folder paths.
This commit is contained in:
Syres916
2023-09-25 13:25:05 +01:00
committed by GitHub
parent e554af5aca
commit 5cf4626b4d

View File

@@ -1203,10 +1203,7 @@ class CommandPathSanity:
filepath = self.resolveOutputFile(obj)
Path.Log.debug("filepath: {}".format(filepath))
base_name = os.path.splitext(filepath)[0]
if "%D" in subsLookup or "%M" in subsLookup:
reporthtml = base_name + ".html"
else:
reporthtml = self.outputpath + base_name + ".html"
reporthtml = base_name + ".html"
else:
reporthtml = self.outputpath + data["outputData"]["outputfilename"] + ".html"