From fc66fc16409b7bad5d5e5cd5f0e29b93d3311bb6 Mon Sep 17 00:00:00 2001 From: Ton <1257901+snelweg@users.noreply.github.com> Date: Sat, 12 Jun 2021 08:25:03 +0200 Subject: [PATCH] Update PathSanity.py Output fillename for the report is now the same as the postprocessor job (job.PostProcessorOutputFile), this way the setup file will be autoloaded in LinuxCNC qtDraggon ui and others based on probe-basic. There is some error checking missing, the check to see if the job.PostProcessorOutputFile is not empty is not there for example. But since the report can only be generated when there is a postprocessor file this is not a big problem. --- src/Mod/Path/PathScripts/PathSanity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathSanity.py b/src/Mod/Path/PathScripts/PathSanity.py index 0d1517e4f7..e8b1110baa 100644 --- a/src/Mod/Path/PathScripts/PathSanity.py +++ b/src/Mod/Path/PathScripts/PathSanity.py @@ -404,8 +404,8 @@ class CommandPathSanity: # Save the report - reportraw = self.outputpath + 'setupreport.asciidoc' - reporthtml = self.outputpath + 'setupreport.html' + reportraw = self.outputpath + job.PostProcessorOutputFile + '.asciidoc' + reporthtml = self.outputpath + job.PostProcessorOutputFile + '.html' with open(reportraw, 'w') as fd: fd.write(report) fd.close()