From 1c9d2ca1b7c1bc1284a98ccabbdf16377d089a09 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 24 Apr 2018 13:12:14 +0200 Subject: [PATCH 1/3] Update genericDriver.py --- src/fenrirscreenreader/speechDriver/genericDriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/speechDriver/genericDriver.py b/src/fenrirscreenreader/speechDriver/genericDriver.py index 31f16db9..f936a352 100644 --- a/src/fenrirscreenreader/speechDriver/genericDriver.py +++ b/src/fenrirscreenreader/speechDriver/genericDriver.py @@ -180,7 +180,7 @@ class driver(speechDriver): try: self.env['runtime']['debug'].writeDebugOut('speechDriver:worker:' + ' '.join(popenSpeechCommand),debug.debugLevel.INFO) self.lock.acquire(True) - self.proc = Popen(popenSpeechCommand, shell=False) + self.proc = Popen(popenSpeechCommand, stdin=None, stdout=None, stderr=None shell=False) self.lock.release() self.proc.wait() except Exception as e: From 863938506a51aa3d31e85526679dfe4524c3aed5 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 24 Apr 2018 13:12:41 +0200 Subject: [PATCH 2/3] Update genericDriver.py --- src/fenrirscreenreader/soundDriver/genericDriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/soundDriver/genericDriver.py b/src/fenrirscreenreader/soundDriver/genericDriver.py index d3eec5f6..c599fe9b 100644 --- a/src/fenrirscreenreader/soundDriver/genericDriver.py +++ b/src/fenrirscreenreader/soundDriver/genericDriver.py @@ -37,7 +37,7 @@ class driver(soundDriver): word = word.replace('fenrirFreqDuration', str(duration)) word = word.replace('fenrirFrequence', str(frequence)) popenFrequenceCommand[idx] = word - self.proc = subprocess.Popen(popenFrequenceCommand, shell=False) + self.proc = subprocess.Popen(popenFrequenceCommand, stdin=None, stdout=None, stderr=None, shell=False) self.soundType = 'frequence' def playSoundFile(self, filePath, interrupt = True): if not self._initialized: From e20183aaa9399dfe596932f4d2745f00b534a5ba Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 24 Apr 2018 13:13:10 +0200 Subject: [PATCH 3/3] Update genericDriver.py --- src/fenrirscreenreader/speechDriver/genericDriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/speechDriver/genericDriver.py b/src/fenrirscreenreader/speechDriver/genericDriver.py index f936a352..3aaecfbe 100644 --- a/src/fenrirscreenreader/speechDriver/genericDriver.py +++ b/src/fenrirscreenreader/speechDriver/genericDriver.py @@ -180,7 +180,7 @@ class driver(speechDriver): try: self.env['runtime']['debug'].writeDebugOut('speechDriver:worker:' + ' '.join(popenSpeechCommand),debug.debugLevel.INFO) self.lock.acquire(True) - self.proc = Popen(popenSpeechCommand, stdin=None, stdout=None, stderr=None shell=False) + self.proc = Popen(popenSpeechCommand, stdin=None, stdout=None, stderr=None, shell=False) self.lock.release() self.proc.wait() except Exception as e: