in deferred I don't have a direct access to *request.** *Usually I use request = current.request, that is why I need an access to 'current'. But this is a no go. So I have to provide the path to web2py for deferred somehow.
import os from gluon.settings import global_settings web2py_path = os.path.join(global_settings.applications_parent, *request* .folder)

