don't resolve absolute paths
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 5 Mar 2006 21:44:35 +0000 (21:44 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 5 Mar 2006 21:44:35 +0000 (21:44 +0000)
lib/python/Tools/Directories.py

index e667029..123e1bf 100644 (file)
@@ -41,6 +41,11 @@ 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: