From 7caa114b900d8cac5c57e59df971da9280112a1f Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Wed, 8 Oct 2008 21:27:46 +0000 Subject: [PATCH] do not create files when checking for existence... --- lib/python/Components/SystemInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index c3c8ff36..50663324 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -6,7 +6,7 @@ SystemInfo = { } def getNumVideoDecoders(): from Tools.Directories import fileExists idx = 0 - while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'w'): + while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'r'): idx += 1 return idx -- 2.30.2