Not sure I understand your question, but you can always deploy your
lib as a normal python lib, then all web2py app can import it,
provided you are running web2py from source version.
Or you can just deploy your lib in web2py/applications/yourapp/
modules. Just go ahead, nothing special here.
On
OK, what I should import in my module?
The module is supposed detouchable, developed for the extra web2py use
also
What a clever way to check web2py, to import only needed
gluon.globals.Request and to resolve exception if any?
Also: if I really need only some functions from my hypothetic
modul
do not trust getcwd() because that depends on installation details.
use request.folder
On Feb 20, 3:40 am, sherdim wrote:
> Hello,all!
>
> How to get application path inside module correctly?
>
> When using os.getcwd() for web2py root it is needed the application
> path also.
>
> request is not
did you try request.env.web2py_path+'/
applications/'+request.application ?
On Feb 20, 10:40 am, sherdim wrote:
> Hello,all!
>
> How to get application path inside module correctly?
>
> When using os.getcwd() for web2py root it is needed the application
> path also.
>
> request is not available,
4 matches
Mail list logo