don't resolve absolute paths
[enigma2.git] / lib / python / Tools / Directories.py
index 3736b7b55e519879f77b5ab15991575cf04e552e..123e1bf8214099874d34bf149247516eaff68099 100644 (file)
@@ -41,11 +41,19 @@ fallbackPaths = {
        }
 
 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:
                if (not pathExists(defaultPaths[scope][0])):
                        os.mkdir(path[0])
+                       
+       #if len(base) > 0 and base[0] == '/':
+               #path = ("", None)
        
        if not fileExists(path[0] + base):
                #try: