P.J. Eby wrote:
Which template do I get if I do:

pkg_resources.resource_string(tuple(pkg_resources.parse_requirements('XA'))[0],'templates/master')

...in the context of pip or another flat-structure install?

You get whatever was installed last.

Is pkg_resources.resource_string(<requirement>,..) *ever* useful or sane then?

It doesn't sound like it, in which case, could it be deprecated and removed please?

(Alternatively, they can put their stuff under the project's egg-info directory, the way EggTranslations does.)

What's EggTranslations and where can I see its code?


Chris

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to