diff options
author | Mark <mark.suurmond@gmail.com> | 2017-11-14 13:53:24 +0300 |
---|---|---|
committer | Mark <mark.suurmond@gmail.com> | 2017-11-14 13:53:24 +0300 |
commit | 913bcf45b184fe01392e41803a260d37b333a30c (patch) | |
tree | f037cbc0d7f46ec4b87c697d418d184cf265866a /plugins/RemovableDriveOutputDevice | |
parent | 720b9ebdfab1e0e0df185a262b9b36f735dec23c (diff) |
Add stderr to send errors to
Diffstat (limited to 'plugins/RemovableDriveOutputDevice')
-rw-r--r-- | plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py b/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py index d87499273b..5ad2caed0b 100644 --- a/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py +++ b/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py @@ -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")) |