diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-03-05 09:16:39 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-03-05 09:16:39 +0000 |
| commit | e9db1fd8163a6a18c9e9f8a4c0319e2985cba03e (patch) | |
| tree | 91ce72618cadffbf83d63f7b7fe55cb70898e3a4 /lib/python | |
| parent | 64fcd10afb958be39748d0d9887d4ed5cf9779fc (diff) | |
| download | enigma2-e9db1fd8163a6a18c9e9f8a4c0319e2985cba03e.tar.gz enigma2-e9db1fd8163a6a18c9e9f8a4c0319e2985cba03e.zip | |
small fix for basenames of zero length
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Tools/Directories.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/Tools/Directories.py b/lib/python/Tools/Directories.py index 6c84216f..6b321c32 100644 --- a/lib/python/Tools/Directories.py +++ b/lib/python/Tools/Directories.py @@ -47,7 +47,7 @@ def resolveFilename(scope, base = ""): if (not pathExists(defaultPaths[scope][0])): os.mkdir(path[0]) - if base[0] == '/': + if len(base > 0) and base[0] == '/': path = "" if not fileExists(path[0] + base): |
