X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ed40f6f85c9c07c3c1224ae20601082c0309a631..0ccffb6b503d7a285f3d5f7d7e44999d6eb60784:/lib/python/Components/DiskInfo.py diff --git a/lib/python/Components/DiskInfo.py b/lib/python/Components/DiskInfo.py index 0b7e0bcb..ba04ea49 100644 --- a/lib/python/Components/DiskInfo.py +++ b/lib/python/Components/DiskInfo.py @@ -1,6 +1,6 @@ from GUIComponent import * from VariableText import * -import os +from os import statvfs from enigma import eLabel @@ -21,7 +21,7 @@ class DiskInfo(VariableText, GUIComponent): def update(self): try: - stat = os.statvfs(self.path) + stat = statvfs(self.path) except OSError: return -1