Fixed an issue causing slicing not to work due to a change in how the used sarge library works
Starting commands asynchronously now necessitates a call to Pipeline.wait_events in order to be able to access the started Command instances. Not waiting causes the list of commands to be not fully populated and hence issues with code depending on that stuff being present.
This commit is contained in:
parent
6f52e7a008
commit
2f5e955367
1 changed files with 1 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
|
|||
self._logger.info("Running %r in %s" % (command, working_dir))
|
||||
|
||||
p = sarge.run(command, cwd=working_dir, async=True, stdout=sarge.Capture(), stderr=sarge.Capture())
|
||||
p.wait_events()
|
||||
self._slicing_commands[machinecode_path] = p.commands[0]
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue