mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add stderr to send errors to
This commit is contained in:
parent
720b9ebdfa
commit
913bcf45b1
1 changed files with 2 additions and 4 deletions
|
@ -4,8 +4,6 @@
|
|||
|
||||
from . import RemovableDrivePlugin
|
||||
|
||||
from UM.Logger import Logger
|
||||
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
|
@ -15,12 +13,12 @@ import plistlib
|
|||
class OSXRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin):
|
||||
def checkRemovableDrives(self):
|
||||
drives = {}
|
||||
p = subprocess.Popen(["system_profiler", "SPUSBDataType", "-xml"], stdout = subprocess.PIPE)
|
||||
p = subprocess.Popen(["system_profiler", "SPUSBDataType", "-xml"], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
|
||||
plist = plistlib.loads(p.communicate()[0])
|
||||
|
||||
result = self._recursiveSearch(plist, "removable_media")
|
||||
|
||||
p = subprocess.Popen(["system_profiler", "SPCardReaderDataType", "-xml"], stdout=subprocess.PIPE)
|
||||
p = subprocess.Popen(["system_profiler", "SPCardReaderDataType", "-xml"], stdout=subprocess.PIPE, stderr = subprocess.PIPE)
|
||||
plist = plistlib.loads(p.communicate()[0])
|
||||
|
||||
result.extend(self._recursiveSearch(plist, "removable_media"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue