You could use the PYTHONPATH environmental variable. But yes, I think adding something to Application.config (or probably AppServer.config) would be better, since this is a common pattern.
On Tue, 2002-11-19 at 17:22, Edmund Lian wrote: > I have a directory containing common library code that is located outside > of any context. I need to add the directory's path to sys.path. Right now, > I'm doing so with a call to sys.path.append() within contextInitialize() of > the default context. > > I'd really prefer that there was some way to add stuff to sys.path through > some setting in Application.config, so that I don't have to hardcode the > library path in __init__.py of any context, and so that I don't have a > context that has to be loaded before any other context that also uses the > libraries. > > Is there anyway to achieve this? > > ...Edmund. > > > > ------------------------------------------------------- > This sf.net email is sponsored by: To learn the basics of securing > your web site with SSL, click here to get a FREE TRIAL of a Thawte > Server Certificate: http://www.gothawte.com/rd524.html > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss -- Ian Bicking <[EMAIL PROTECTED]> ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss