what i would like is to put my 'lib' in my project into the sys.path when i
log into remote_api.
right now im doing it manually.
On Feb 3, 2011, at 9:24 PM, Tim Hoffman wrote:
> Oops my previous email should have read deferred handler not the remote_api.
>
> You shouldn't need to manipulate sys.path for remote_api but it is very
> likely you will need to for
> app.yaml entry and deferred handler.
>
>
> - url: /_ah/queue/deferred
> script: qtrack_deferred_handler.py
> login: admin
>
>
>
> import logging
> logging.getLogger().setLevel(logging.INFO)
>
> from google.appengine.ext import deferred
> from google.appengine.ext.webapp.util import run_wsgi_app
> import site
>
> # Add each new site-packages directory.
>
> site.addsitedir('lib')
>
> def main():
> import qtrack.models
> qtrack.models.initialise()
> run_wsgi_app(deferred.application)
>
>
> if __name__ == "__main__":
> main()
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.