On Thursday, December 1, 2011 8:58:03 AM UTC-5, Alan Etkin wrote:
>
> >Instead making local_import("model") for a model stored at myweb2pyapp/
> >models/model.py, i need to make the same statement for a model stored
> >at ~/another/path/module.py
>
> I meant import modules, sorry for the mistake.
>
> So to import a module from another path i could do:
>
> from gluon.custom_import import track_changes
> track_changes(True)
> sys.path.append("another/path")
>
I don't think manipulating sys.path from your app code is recommended. Is 
the module in the modules folder of another app? If so, just do:

from applications.appname.modules import mymodule

Anthony 

Reply via email to