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-06-12 08:25:03 +02:00
committed by GitHub
parent 1645cc0c28
commit 380b8f8c14

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()