add preliminary parsing and display of M17 metadata

This commit is contained in:
Jakob Ketterl
2021-12-21 21:18:17 +01:00
parent 81b8f183c2
commit 40c68933e1
6 changed files with 117 additions and 8 deletions

View File

@@ -118,8 +118,11 @@ class PopenModule(AutoStartModule, metaclass=ABCMeta):
def getCommand(self):
pass
def _getProcess(self):
return Popen(self.getCommand(), stdin=PIPE, stdout=PIPE)
def start(self):
self.process = Popen(self.getCommand(), stdin=PIPE, stdout=PIPE)
self.process = self._getProcess()
# resume in case the reader has been stop()ed before
self.reader.resume()
Thread(target=self.pump(self.reader.read, self.process.stdin.write)).start()