summaryrefslogtreecommitdiff
path: root/paste/fileapp.py
diff options
context:
space:
mode:
authormaluke <devnull@localhost>2008-05-23 19:15:27 +0000
committermaluke <devnull@localhost>2008-05-23 19:15:27 +0000
commit17d0f5861607738f25ee4bb119cbcea2245dec9d (patch)
tree68553d15c9c98906f50b420ac5ea4090a9fb5b0e /paste/fileapp.py
parentf3eac6b8fa92779a22c7a878b42f0338e6ed562e (diff)
downloadpaste-17d0f5861607738f25ee4bb119cbcea2245dec9d.tar.gz
make sure DirectoryApp.path ends with os.path.sep
Diffstat (limited to 'paste/fileapp.py')
-rw-r--r--paste/fileapp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/fileapp.py b/paste/fileapp.py
index a94e965..16bc0ed 100644
--- a/paste/fileapp.py
+++ b/paste/fileapp.py
@@ -269,8 +269,10 @@ class DirectoryApp(object):
def __init__(self, path):
self.path = os.path.abspath(path)
- self.cached_apps = {}
+ if not self.path.endswith(os.path.sep):
+ self.path += os.path.sep
assert os.path.isdir(self.path)
+ self.cached_apps = {}
def __call__(self, environ, start_response):
path_info = environ['PATH_INFO']