From 653f1057153af51d88ceae517328df9f919ea9ce Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 19 Sep 2014 16:55:44 +0200 Subject: Use os.devnull instead of hardcoded /dev/null --- client/speaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/speaker.py b/client/speaker.py index 7b9c018..7e90986 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -128,7 +128,7 @@ class picoSpeaker(AbstractSpeaker): @property def languages(self): cmd = ['pico2wave', '-l', 'NULL', - '-w', '/dev/null', + '-w', os.devnull, 'NULL'] with tempfile.SpooledTemporaryFile() as f: subprocess.call(cmd, stderr=f) -- cgit v1.3.1