In trunk. Excellent!
On Thursday, 28 June 2012 09:27:58 UTC-5, Corne Dickens wrote: > > Hi, > > Web2py imports modules from the site-packages directory which is a great > way to build a project withoud any 'external' dependencies. > Only it does not work with modules installed by python easy-install. > > Python it's self uses a site module for this, which can be added to web2py > in an easy way. > Maybe this is a nice addition for the next version? > > --- web2py/gluon/admin.py 2012-03-04 23:11:41.000000000 +0100 > +++ ../web2py/gluon/admin.py 2012-03-08 12:19:52.000000000 +0100 > @@ -7,6 +7,7 @@ > =========================================== > """ > import os > +import site > import sys > import traceback > import zipfile > @@ -430,6 +431,7 @@ > > def add_path_first(path): > sys.path = [path]+[p for p in sys.path if (not p==path and not > p==(path+'/'))] > + site.addsitedir(path) > > > > def create_missing_folders(): > > if not global_settings.web2py_runtime_gae: > > > > >

