Use first destination extension for default target name
This commit is contained in:
parent
944775abde
commit
dbf1273e9d
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ def gcodeFileCommand(filename, target):
|
|||
else:
|
||||
import os
|
||||
name, _ = os.path.splitext(filename)
|
||||
destination = name + "." + slicer_instance.get_slicer_properties().get("destination_extensions", ["gco", "gcode", "g"])
|
||||
destination = name + "." + slicer_instance.get_slicer_properties().get("destination_extensions", ["gco", "gcode", "g"])[0]
|
||||
|
||||
# prohibit overwriting the file that is currently being printed
|
||||
currentOrigin, currentFilename = _getCurrentFile()
|
||||
|
|
|
|||
Loading…
Reference in a new issue