diff options
| author | Michael Merickel <michael@merickel.org> | 2015-12-17 21:53:34 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2015-12-17 21:53:34 -0600 |
| commit | f7171cc18d2452797e1497158bed21d779c54355 (patch) | |
| tree | ae8576da710807fe86f1adea4136bb66b3926c4b | |
| parent | b791e9ee69e98032950f97e09a98baadddbe9f91 (diff) | |
| download | pyramid-f7171cc18d2452797e1497158bed21d779c54355.tar.gz pyramid-f7171cc18d2452797e1497158bed21d779c54355.tar.bz2 pyramid-f7171cc18d2452797e1497158bed21d779c54355.zip | |
ensure IAssetDescriptor.abspath always returns an abspath
fixes #2184
| -rw-r--r-- | pyramid/path.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyramid/path.py b/pyramid/path.py index b79c5a6ac..ceb0a0cf3 100644 --- a/pyramid/path.py +++ b/pyramid/path.py @@ -396,7 +396,8 @@ class PkgResourcesAssetDescriptor(object): return '%s:%s' % (self.pkg_name, self.path) def abspath(self): - return self.pkg_resources.resource_filename(self.pkg_name, self.path) + return os.path.abspath( + self.pkg_resources.resource_filename(self.pkg_name, self.path)) def stream(self): return self.pkg_resources.resource_stream(self.pkg_name, self.path) |
