P.J. Eby wrote:
How do static resources returned with
pkg_resources.resource_filename and friends fare when packages are
installed in a "flat" form?
They go in the same relative location as they would in an egg, it's
just that in flat layouts everyone's files are in the same namespace.
Sort of a "scrambled egg", if you will. ;-)
Okay, so if we have two distributions, x.a and x.b both define
template folders called 'templates', and each has a template called
'master', what ends up on disk? what does
pkg_resources.resource_filename('x.a','templates/master') return?
It should be different to
pkg_resources.resource_filename('x.b','templates/master'), but will it
be?
You seem to be confusing distributions and packages.
Potentially, is the first argument to resource_filename a distributions
name or a dotted package named?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig