Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1753

Show
Ignore:
Timestamp:
10/16/07 16:11:06
Author:
lakin
Message:

Static tool: allow the use of ~ as a placeholder for a the user's home directory in the path names.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/static.py

    r1668 r1753  
    153153        return False 
    154154     
     155    # Allow the use of '~' to refer to a user's home directory. 
     156    dir = os.path.expanduser(dir) 
     157 
    155158    # If dir is relative, make absolute using "root". 
    156159    if not os.path.isabs(dir): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets