Use first destination extension for default target name
This commit is contained in:
1 parent
944775abde
commit
dbf1273e9d
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user