Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2018-06-29 10:25:38 +0300
committerJaime van Kessel <nallath@gmail.com>2018-06-29 10:25:38 +0300
commitb4f59a78226f83e2935cc06a82230d7f242e4613 (patch)
tree793f646e1cff889dc4062acaae341433716ec33b /plugins/GCodeReader
parent2b83af24977f36af32d7dcff6641d1e63493244a (diff)
Removed unneeded application reference in construction of meshreaders
Diffstat (limited to 'plugins/GCodeReader')
-rwxr-xr-xplugins/GCodeReader/GCodeReader.py6
-rw-r--r--plugins/GCodeReader/__init__.py3
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/GCodeReader/GCodeReader.py b/plugins/GCodeReader/GCodeReader.py
index c51fc9c8a7..45ef1e1058 100755
--- a/plugins/GCodeReader/GCodeReader.py
+++ b/plugins/GCodeReader/GCodeReader.py
@@ -19,16 +19,16 @@ MimeTypeDatabase.addMimeType(
)
)
+
# Class for loading and parsing G-code files
class GCodeReader(MeshReader):
-
_flavor_default = "Marlin"
_flavor_keyword = ";FLAVOR:"
_flavor_readers_dict = {"RepRap" : RepRapFlavorParser.RepRapFlavorParser(),
"Marlin" : MarlinFlavorParser.MarlinFlavorParser()}
- def __init__(self, application):
- super(GCodeReader, self).__init__(application)
+ def __init__(self) -> None:
+ super().__init__()
self._supported_extensions = [".gcode", ".g"]
self._flavor_reader = None
diff --git a/plugins/GCodeReader/__init__.py b/plugins/GCodeReader/__init__.py
index 399de8a90e..4158a038b0 100644
--- a/plugins/GCodeReader/__init__.py
+++ b/plugins/GCodeReader/__init__.py
@@ -20,7 +20,8 @@ def getMetaData():
]
}
+
def register(app):
app.addNonSliceableExtension(".gcode")
app.addNonSliceableExtension(".g")
- return { "mesh_reader": GCodeReader.GCodeReader(app) }
+ return {"mesh_reader": GCodeReader.GCodeReader()}