From: Stefan Pluecken Date: Sun, 5 Mar 2006 09:16:39 +0000 (+0000) Subject: small fix for basenames of zero length X-Git-Tag: 2.6.0~3881 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/e9db1fd8163a6a18c9e9f8a4c0319e2985cba03e small fix for basenames of zero length --- 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):