On Wed, 2002-10-30 at 00:23, Huy Do wrote:
> Hi Guys,
> 
> Should webware get confused about my modules if I have the following setup.
> 
> My directory structure is as follows:
> 
> /work/developer1
>    /lib/amod.py
>    /templates/bmod.py
> /work/developer2
>    /lib/amod.py
>    /templates/bmod.py
> 
> in amod.py i have "from templates.bmod import bmod".
> 
> I setup two contexts for each developer i.e
> 
> dev1 -> /work/developer1
> dev2 -> /work/developer2
> 
> Now when I call amod under the dev1 context it imports templates.bmod from
> /work/developer2.

You should be able to do "from dev1.templates.bmod import bmod".  Due to
the way Python works and the fact that all contexts run in the same
process, there doesn't seem to be a better solution.

  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

Reply via email to