don't resolve absolute paths
[enigma2.git] / lib / python / Tools / Directories.py
index 6c84216fe25bbe86c080d7a295232e340211f6ec..123e1bf8214099874d34bf149247516eaff68099 100644 (file)
@@ -41,14 +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 base[0] == '/':
-               path = ""
+       #if len(base) > 0 and base[0] == '/':
+               #path = ("", None)
        
        if not fileExists(path[0] + base):
                #try: