#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 f2b1bd1c24
commit 875dc2ceff

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