CAM: fix fablin postprocessor always writing to "-" instead of specified file
This commit is contained in:
@@ -199,9 +199,12 @@ def export(objectslist, filename, argstring):
|
||||
|
||||
print("done postprocessing.")
|
||||
|
||||
gfile = pyopen(filename, "w")
|
||||
gfile.write(final)
|
||||
gfile.close()
|
||||
if not filename == "-":
|
||||
gfile = pyopen(filename, "w")
|
||||
gfile.write(final)
|
||||
gfile.close()
|
||||
|
||||
return final
|
||||
|
||||
|
||||
def linenumber():
|
||||
|
||||
Reference in New Issue
Block a user