Log a message to octoprint.log if Cura is not fully configured and hence not available for slicing yet.
As suggested in #689
This commit is contained in:
parent
256c2dfdbe
commit
46b0367335
1 changed files with 4 additions and 1 deletions
|
|
@ -188,7 +188,10 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
|
|||
|
||||
def is_slicer_configured(self):
|
||||
cura_engine = s.get(["cura_engine"])
|
||||
return cura_engine is not None and os.path.exists(cura_engine)
|
||||
if cura_engine is not None and os.path.exists(cura_engine):
|
||||
return True
|
||||
else:
|
||||
self._logger.info("Path to CuraEngine has not been configured yet or does not exist (currently set to %r), Cura will not be selectable for slicing" % cura_engine)
|
||||
|
||||
def get_slicer_properties(self):
|
||||
return dict(
|
||||
|
|
|
|||
Loading…
Reference in a new issue