RemovableDriveOutputDevice: Same for OSX

See 0b0bc80805
This commit is contained in:
Thomas-Karl Pietrowski 2016-03-14 17:04:51 +01:00
parent 0b0bc80805
commit 19ccfdfbd7

View file

@ -4,6 +4,8 @@
from . import RemovableDrivePlugin
from UM.Logger import Logger
import threading
import subprocess
@ -46,6 +48,7 @@ class OSXRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin):
def performEjectDevice(self, device):
p = subprocess.Popen(["diskutil", "eject", path], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = p.communicate()
Logger.log("d", "umount returned: %s.", repr(output))
return_code = p.wait()
if return_code != 0: