diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-03-05 08:41:57 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-03-05 08:41:57 +0000 |
| commit | 64fcd10afb958be39748d0d9887d4ed5cf9779fc (patch) | |
| tree | 28135fd4dfc0c1210f4bed9ee17f143fd861ebff /lib/python | |
| parent | 72c8ba6c4d1cceadae9e12d79d3532258614a97e (diff) | |
| download | enigma2-64fcd10afb958be39748d0d9887d4ed5cf9779fc.tar.gz enigma2-64fcd10afb958be39748d0d9887d4ed5cf9779fc.zip | |
allow absolute paths in resolveFilename
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Tools/Directories.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |
