[Web-SIG] Standardising containment.

Paul Boddie 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
to 
> files in the local file system, based on the above pythonic, i.e. 
> module.__file__, approach?

Another note about this here:

http://www.google.com/groups?selm=ur7pfb6uz.fsf%40fitlinxx.com

I've been most interested in having applications represented by modules
or
packages which get imported by various adapters, but in schemes where
applications are just executed programs, you might run into an issue
with
__file__ and older Python releases.

Paul

P.S. Although __file__ is supposedly Pythonic, it's quite possible that
the
resources associated with an application don't always reside in an
easily
discoverable location relative to the application's modules - ie. they
get
installed in some opaquely-named directory which might vary with the
framework being used, even it is located relative to those modules in
the
filesystem. Perhaps an explicit resource path (or context path) needs
defining somewhere.


More information about the Web-SIG mailing list