allow absolute paths in resolveFilename
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 5 Mar 2006 08:41:57 +0000 (08:41 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 5 Mar 2006 08:41:57 +0000 (08:41 +0000)
lib/python/Tools/Directories.py

index 3736b7b..6c84216 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: