allow absolute paths in resolveFilename
[enigma2.git] / lib / python / Tools / Directories.py
index 3736b7b55e519879f77b5ab15991575cf04e552e..6c84216fe25bbe86c080d7a295232e340211f6ec 100644 (file)
@@ -46,6 +46,9 @@ def resolveFilename(scope, base = ""):
        if path[1] == PATH_CREATE:
                if (not pathExists(defaultPaths[scope][0])):
                        os.mkdir(path[0])
+                       
+       if base[0] == '/':
+               path = ""
        
        if not fileExists(path[0] + base):
                #try: