summaryrefslogtreecommitdiff
path: root/paste/urlparser.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-01-04 00:36:46 +0000
committerianb <devnull@localhost>2007-01-04 00:36:46 +0000
commite52a896bdc0d9bad912b2f96da97d90bea8b904c (patch)
tree8fa5c69d2e3fcc58f735d4c8f81959b42f017cd8 /paste/urlparser.py
parentbb81d888978710ef309348c2463192db2c8464a5 (diff)
downloadpaste-e52a896bdc0d9bad912b2f96da97d90bea8b904c.tar.gz
always set root_resources in PkgResourcesParser
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r--paste/urlparser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py
index dda547f..bc946d9 100644
--- a/paste/urlparser.py
+++ b/paste/urlparser.py
@@ -536,9 +536,9 @@ class PkgResourcesParser(StaticURLParser):
if manager is None:
manager = pkg_resources.ResourceManager()
self.manager = manager
- self.root_resource = root_resource
- if root_resource is not None:
- self.root_resource = os.path.normpath(self.root_resource)
+ if root_resources is None:
+ root_resources = resource_name
+ self.root_resource = os.path.normpath(root_resource)
def __repr__(self):
return '<%s for %s:%r>' % (