[Web-SIG] Standardising containment.
paul.boddie at ementor.no
Tue Sep 7 12:45:07 CEST 2004
Alan Kennedy wrote:
> Perhaps it's worth adding something to the Q&A about how to map URIs
> files in the local file system, based on the above pythonic, i.e.
> module.__file__, approach?
Another note about this here:
I've been most interested in having applications represented by modules
packages which get imported by various adapters, but in schemes where
applications are just executed programs, you might run into an issue
__file__ and older Python releases.
P.S. Although __file__ is supposedly Pythonic, it's quite possible that
resources associated with an application don't always reside in an
discoverable location relative to the application's modules - ie. they
installed in some opaquely-named directory which might vary with the
framework being used, even it is located relative to those modules in
filesystem. Perhaps an explicit resource path (or context path) needs
More information about the Web-SIG