Chris,
I am troubleshooting this same issue.  Try adding this to your model:

import sys
import os.path
site_packages_path = os.path.join(request.env.web2py_path,'site-
packages')
if sys.path[0] != site_packages_path:
    sys.path.insert(0, site_packages_path)
# print site_packages_path

I also added this to my controller:

    test = str(site_packages_path)
    return dict(test=test)

Let me know if this helps you to troubleshoot this issue.  If I find a
resolution, I'll write here as well.



On Oct 13, 1:11 am, ChrisM <[email protected]> wrote:
> Hi I am experimening with pyaiml with web2py and app engine.
> What is the correct way in web2py to call a file in the site-packages/
> aiml folder I can't get
> app engine to find my bot.brn data file which resides here and needs
> to be loaded
> by pyaiml.?
> help appreciated
> chrism

Reply via email to