diff --git a/lib/extensions/select_elements.py b/lib/extensions/select_elements.py index f986b2628..ed3e41cf5 100644 --- a/lib/extensions/select_elements.py +++ b/lib/extensions/select_elements.py @@ -50,12 +50,12 @@ class SelectElements(InkstitchExtension): py_path, file_path = self._get_paths() id_list = self._get_id_list() - with subprocess.Popen( + with open(os.devnull, 'w') as null: + subprocess.Popen( [py_path, 'select_elements.py', id_list], cwd=file_path, - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL) as proc: - proc.wait() + stdout=null + ).wait() def _get_paths(self): file_path = get_bundled_dir("dbus")