diff options
author | ianb <devnull@localhost> | 2008-03-30 20:20:53 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-03-30 20:20:53 +0000 |
commit | f5a873be4910cbabd2187d9212b61720eb1bf738 (patch) | |
tree | db0d387b4bc8a4722ec23df7d9f552bae52da1db /paste/urlparser.py | |
parent | 600d337c071cd8fea2406b7e3b78af7c6061d27a (diff) | |
download | paste-f5a873be4910cbabd2187d9212b61720eb1bf738.tar.gz |
Accept relative paths in StaticURLParser (#244). From Eric Larson
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index 0645b8e..2f79796 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -438,6 +438,8 @@ class StaticURLParser(object): self.root_directory = os.path.normpath(self.root_directory) else: self.root_directory = directory + self.root_directory = os.path.normcase(os.path.normpath( + os.path.abspath(self.root_directory))) self.cache_max_age = cache_max_age if os.path.sep != '/': directory = directory.replace('/', os.path.sep) |