dont show pip options in extension menu when no pip is available
[enigma2.git] / lib / python / Tools / Directories.py
index 0096f3f..4cdb1d4 100644 (file)
@@ -105,9 +105,9 @@ def createDir(path):
                ret = 1
        return ret
 
                ret = 1
        return ret
 
-def fileExists(f):
+def fileExists(f, mode='r'):
        try:
        try:
-               file = open(f)
+               file = open(f, mode)
        except IOError:
                exists = 0
        else:
        except IOError:
                exists = 0
        else: