ok. I've spent some serious time learning how Python does modules, path, etc., and i have a few questions. Let's assume my layout looks like this...
/product/V1/lib/tool.py /product/V1/app/a/apage.py /product/V1/app/b/apage.py /product/V2/lib/tool.py /product/V2/app/a/apage.py /product/V2/app/b/apage.py In my webware configuration, the two contexts are... /product/V1/app and /product/V2/app. The question is... how do I import tool.py from apage.py that is version dependent? I can reduce this problem to... >From the module /V2/app/b/apage.py, how do I determine what context I'm in? I have a kludge. I can introduce a semi-generic function "loader" that I put into each directory (multiple copies of it). This function then uses the __file__ segment do determine the context, and then this context can be used to return the appropriate tool module. The solution works, but I don't like it. Any other ideas? Best, Clark _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
