aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/NimManager.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index d806bc37..f91a4ea4 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -28,9 +28,8 @@ class NimManager:
def readSatsfromFile(self):
self.satellites = { }
#FIXME: path ok???
- satfile = file('/etc/tuxbox/satellites.xml', 'r')
- satdom = xml.dom.minidom.parseString(satfile.read())
- satfile.close()
+ satdom = xml.dom.minidom.parse('/etc/tuxbox/satellites.xml')
+
for entries in elementsWithTag(satdom.childNodes, "satellites"):
for x in elementsWithTag(entries.childNodes, "sat"):