diff options
author | ianb <devnull@localhost> | 2007-01-04 00:36:46 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-01-04 00:36:46 +0000 |
commit | e52a896bdc0d9bad912b2f96da97d90bea8b904c (patch) | |
tree | 8fa5c69d2e3fcc58f735d4c8f81959b42f017cd8 /paste/urlparser.py | |
parent | bb81d888978710ef309348c2463192db2c8464a5 (diff) | |
download | paste-e52a896bdc0d9bad912b2f96da97d90bea8b904c.tar.gz |
always set root_resources in PkgResourcesParser
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 6 |
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>' % ( |