Working html report with asciidoctor
This commit is contained in:
@@ -37,7 +37,7 @@ import os
|
||||
|
||||
from PathScripts.PathPostProcessor import PostProcessor
|
||||
from PySide import QtCore, QtGui
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
LOG_MODULE = PathLog.thisModule()
|
||||
|
||||
@@ -210,9 +210,9 @@ class CommandPathPost:
|
||||
print("post: %s(%s, %s)" % (postname, filename, postArgs))
|
||||
processor = PostProcessor.load(postname)
|
||||
gcode = processor.export(objs, filename, postArgs)
|
||||
return (False, gcode)
|
||||
return (False, gcode, filename)
|
||||
else:
|
||||
return (True, '')
|
||||
return (True, '', filename)
|
||||
|
||||
def Activated(self):
|
||||
PathLog.track()
|
||||
@@ -391,17 +391,22 @@ class CommandPathPost:
|
||||
rc = '' # pylint: disable=unused-variable
|
||||
if split:
|
||||
for slist in postlist:
|
||||
(fail, rc) = self.exportObjectsWith(slist, job)
|
||||
(fail, rc, filename) = self.exportObjectsWith(slist, job)
|
||||
else:
|
||||
finalpostlist = [item for slist in postlist for item in slist]
|
||||
(fail, rc) = self.exportObjectsWith(finalpostlist, job)
|
||||
(fail, rc, filename) = self.exportObjectsWith(finalpostlist, job)
|
||||
|
||||
self.subpart = 1
|
||||
|
||||
if fail:
|
||||
FreeCAD.ActiveDocument.abortTransaction()
|
||||
else:
|
||||
if hasattr(job, "LastPostProcessDate"):
|
||||
job.LastPostProcessDate = str(datetime.now())
|
||||
if hasattr(job, "LastPostProcessOutput"):
|
||||
job.LastPostProcessOutput = filename
|
||||
FreeCAD.ActiveDocument.commitTransaction()
|
||||
|
||||
FreeCAD.ActiveDocument.recompute()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user