Doug Hellmann
2013-09-06 c5ccafafb2be6ff337ff767044f02e3238d19dc0
refs
author Doug Hellmann <doug.hellmann@gmail.com>
Friday, September 6, 2013 00:09 +0200
committer Matt Jeffery <matt@musicmetric.com>
Friday, October 11, 2013 17:47 +0200
commitc5ccafafb2be6ff337ff767044f02e3238d19dc0
tree 030f3d9bc9a8605d555aa73fab6ea7059e281e01 tree | zip | gz
parent bac4476d9e95e6bdc8a46bc9944f1c36daa3738a view | diff
Update package_name() to work with namespace pkgs

The logic in pyramid.path.package_name() should take into
account the fact that namespace packages created by
setuptools do not have __init__.py[c] files, and so they
have no __file__ attribute.

This resolves an issue with WSME
(https://bugs.launchpad.net/wsme/+bug/1221201)

Change-Id: I39bc32a9c38fa11c4cef22a041077ed9001091be
(cherry picked from commit c062d5ace6adedcf0f6434cffc07fb24cc608733)
4 files modified
33 ■■■■■ changed files
CHANGES.txt 9 ●●●●● diff | view | raw | blame | history
CONTRIBUTORS.txt 2 ●●●●● diff | view | raw | blame | history
pyramid/path.py 6 ●●●● diff | view | raw | blame | history
pyramid/tests/test_path.py 16 ●●●●● diff | view | raw | blame | history