You can do a "pip install web2py" that should put gluon in the global path. Try it in a virtualenv.
-- Praneeth IRC: lifeeth On Fri, Apr 29, 2011 at 11:06 AM, luckysmack <luckysm...@gmail.com> wrote: > Pretty much like the title says. This is also for things like when i > open up a i/b/python shell, it would be cool to just be able to run > 'import gluon' or 'from gluon import foo'. Im sure this would also > have other benefits as well, but im not sure. I tried doing 'import > sys' and 'sys.path.append("/srv/sites/web2py/gluon")' but that didnt > seem to work. i also tried it without the/gluon part. Is it worth it > to do this? otherwise i can get the effect by opening a terminal and > going to the web2py directory, opening the python shell and importing > like that. This culd also be handy when running python scripts that > are in different places on the system and wanting to be able to import > something from gluon.