Doug Hellmann
2013-09-06 c062d5ace6adedcf0f6434cffc07fb24cc608733
refs
author Doug Hellmann <doug.hellmann@gmail.com>
Friday, September 6, 2013 00:09 +0200
committer Doug Hellmann <doug.hellmann@gmail.com>
Friday, September 6, 2013 19:54 +0200
commitc062d5ace6adedcf0f6434cffc07fb24cc608733
tree ca5441a304656f27ac25b1e9bc7933d9c5de4679 tree | zip | gz
parent 90b9686a20e6465b9a97ce02e4d10080c0cf271e 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
4 files modified
30 ■■■■■ changed files
CHANGES.txt 6 ●●●●● 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