diff options
author | ianb <devnull@localhost> | 2008-05-29 15:46:32 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-05-29 15:46:32 +0000 |
commit | ee790b8d10e775dc345bf19be1e90fc7a656857d (patch) | |
tree | 6c8f3d9e0b807ba367184c004b4b504b0830aa17 /paste/urlparser.py | |
parent | 42b55c956e00ef0396e299ac4e44ba98187c3619 (diff) | |
download | paste-ee790b8d10e775dc345bf19be1e90fc7a656857d.tar.gz |
normalize/make-absolute the paths passed into StaticURLParser
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index 530e9c4..a8268d5 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -432,7 +432,7 @@ class StaticURLParser(object): cache_max_age=None): if os.path.sep != '/': directory = directory.replace(os.path.sep, '/') - self.directory = directory + self.directory = os.path.normcase(os.path.abspath(directory)) self.root_directory = root_directory if root_directory is not None: self.root_directory = os.path.normpath(self.root_directory) |