remote_api_shell and PYTHONSTARTUP

14 views
Skip to first unread message

Owen Strain

unread,
Oct 3, 2011, 8:44:46 PM10/3/11
to google-a...@googlegroups.com
Hi all,

I'm trying to figure out a way to run a few statements automatically whenever I start the remote (or local) api shell. My goal is just to import some commonly-used stuff to save typing the import statements each time.

I was hoping I could set the standard PYTHONSTARTUP environment variable to point to a file of startup commands, but that doesn't seem to work.

Has anyone else figured out a way to do this?

Thanks,
-- Owen

Nick Johnson

unread,
Oct 4, 2011, 10:52:43 PM10/4/11
to google-a...@googlegroups.com
Hi Owen,

Why not just take a copy of remote_api_shell.py (it's very straightforward) and modify it as needed?

-Nick Johnson

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Nick Johnson, Developer Programs Engineer, App Engine


Tim Hoffman

unread,
Oct 5, 2011, 1:43:35 AM10/5/11
to google-a...@googlegroups.com
Hi

I would take Nick's advice. I have seriously hacked up remote api shell for my own purposes.
Even going as far as using it inside Zope to seamlessly access both zope object store and 
the google datastore are the same time.  

T
Reply all
Reply to author
Forward
0 new messages