From 64fcd10afb958be39748d0d9887d4ed5cf9779fc Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sun, 5 Mar 2006 08:41:57 +0000 Subject: [PATCH] allow absolute paths in resolveFilename --- lib/python/Tools/Directories.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/python/Tools/Directories.py b/lib/python/Tools/Directories.py index 3736b7b5..6c84216f 100644 --- a/lib/python/Tools/Directories.py +++ b/lib/python/Tools/Directories.py @@ -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: -- 2.30.2