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.
This commit is contained in:
Ton
2021-10-20 09:34:20 -05:00
committed by sliptonic
parent 6a441fea8d
commit 6d334db42c
+2 -2
View File
@@ -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()