Message278699
| Author |
ncoghlan |
| Recipients |
brett.cannon, dgreiman, docs@python, eric.smith, eric.snow, ncoghlan, xiang.zhang |
| Date |
2016年10月15日.06:55:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1476514515.95.0.137073552812.issue28424@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
For 3.4/5/6, I agree this is a documentation issue, where the data files need to be given a *non*-namespaced directory to live in. However, it's worth explicitly noting that subpackages of namespace packages can themselves be regular packages, so one possible solution is to do:
pkg_util.get_data('my_namespace.my_package_data', 'resourcename')
rather than storing the data directly at the namespace level. |
|