~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/common/util.py

  • Committer: mattgiuca
  • Date: 2008-01-29 02:58:41 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:323
util.py: Fixed the fix fix.
(Always one step behind ...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    if path.startswith(root):
55
55
        path = path[len(root):]
56
56
        # Take out the slash as well
57
 
        if path[0] == os.sep:
 
57
        if len(path) > 0 and path[0] == os.sep:
58
58
            path = path[1:]
59
59
 
60
60
    return path