On Fri, 2002-10-04 at 18:02, Erik Forsberg wrote: > However, there is a problem. The method seems to rely on a internal > variable that is available quite late in the process - I'd like it to > be available at __init__ time for my servlets, to be able to get the > configuration very early (for setting up database connections and > similar). > > I'm able to solve it by using a variable that basically checks if > there's been any requests yet - if not, it sets up my database > connection after checking the path. However, I don't like this > solution.
You might try using the magic __file__ attribute. It should give the filename of the module. Ian ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
