#6871 Use the variable 'cam_file' instead of trying to read an non-existing document.

This commit is contained in:
janne
2022-05-11 19:30:06 +02:00
parent b4cb34c4d3
commit 349c6be995

View File

@@ -71,7 +71,7 @@ HEADER = """;Exported by FreeCAD
;CAM file: {}
;Output Time: {}
""".format(
__name__, FreeCAD.ActiveDocument.FileName, str(datetime.datetime.now())
__name__, cam_file, str(datetime.datetime.now())
)