From ef15fc9db2ef6f2ed7360be7795eedc836e9e26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Weber?= Date: Tue, 11 May 2021 21:40:00 +0200 Subject: [PATCH] patch on issue #5 removed pipe on stdin and stderr to leave only stdout, this seems to be fine now --- src/pymodaq_plugin_manager/data/PluginList.json | 2 +- src/pymodaq_plugin_manager/manager.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pymodaq_plugin_manager/data/PluginList.json b/src/pymodaq_plugin_manager/data/PluginList.json index 4218155..91460ef 100644 --- a/src/pymodaq_plugin_manager/data/PluginList.json +++ b/src/pymodaq_plugin_manager/data/PluginList.json @@ -1,6 +1,6 @@ { "name": "pymodaq-pluginList", - "version": "0.0.13", + "version": "0.0.14", "pymodaq-plugins": [ { "plugin-name": "pymodaq_plugins", diff --git a/src/pymodaq_plugin_manager/manager.py b/src/pymodaq_plugin_manager/manager.py index 463a2bb..a2eb7c3 100644 --- a/src/pymodaq_plugin_manager/manager.py +++ b/src/pymodaq_plugin_manager/manager.py @@ -287,8 +287,11 @@ def do_action(self): def do_subprocess(self, command): try: - with subprocess.Popen(command, stdout=subprocess.PIPE, stdin=sys.stdout, stderr=sys.stdout, - universal_newlines=True) as sp: + self.info_widget.moveCursor(QTextCursor.End) + self.info_widget.insertPlainText(' '.join(command)) + self.info_widget.moveCursor(QTextCursor.End) + + with subprocess.Popen(command, stdout=subprocess.PIPE, universal_newlines=True, shell=True) as sp: while True: self.info_widget.moveCursor(QTextCursor.End) self.info_widget.insertPlainText(sp.stdout.readline())