On Fri, 2002-08-09 at 13:46, Tim Payne wrote:
> Just to give an idea of my file setup
>
> Webserver/
> Webware/ "Base Install"
> ww/ "Working Directory"
> Sites/
> url/
> Video/
> Middle/
> Video.py
> Video.mkmodel
> MyServlet.py
Were you able to get Middle.Video imported?
In case it helps, this is what my setup looks like:
projects/
Webware/ Webware 0.7
App/
Lib/ Python utility code used by servlets
Middle/ Middle objects
__init__.py (empty file)
Servlets/ this is my webkit context
I explicitly add ~/projects/App/Lib to my PYTHONPATH when launching the
appserver, which lets me import my "support" modules like so:
import myutils (imports Lib/myutils.py)
from Middle.Shop import Shop (imports Shop from Lib/Middle/Shop.py)
Hope this helps,
Jason
--
Jason D. Hildebrand
[EMAIL PROTECTED]
-------------------------------------------------------
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