don't resolve absolute paths
[enigma2.git] / lib / python / Tools / Directories.py
index e667029edef286654c0be641988c22793d29d252..123e1bf8214099874d34bf149247516eaff68099 100644 (file)
@@ -41,6 +41,11 @@ fallbackPaths = {
        }
 
 def resolveFilename(scope, base = ""):
        }
 
 def resolveFilename(scope, base = ""):
+
+       # don't resolve absolute paths
+       if len(base) and base[0] == '/':
+               return base
+
        path = defaultPaths[scope]
 
        if path[1] == PATH_CREATE:
        path = defaultPaths[scope]
 
        if path[1] == PATH_CREATE: