[google-appengine] Re: How to pass the password to "appcfg.py update" in a python script?

2008-11-09 Thread luismgz
I read many threads on the subject and tried many variants, but I still couldn't figure out how to do it. What I know for sure is that using the subprocess module is the way to go, since it aims to replace all the older solutions, but I can't make it work... Let's say that my appengine directory

[google-appengine] Re: How to pass the password to "appcfg.py update" in a python script?

2008-11-08 Thread David Symonds
On Sat, Nov 8, 2008 at 11:46 PM, Alexander Orlov <[EMAIL PROTECTED]> wrote: > > On Nov 7, 9:07 pm, "David Symonds" <[EMAIL PROTECTED]> wrote: >> You'll want to use os.popen instead. > > How should I exactly use it? > os.popen(cmd, args) http://www.google.com/search?q=site:python.org+os.popen http

[google-appengine] Re: How to pass the password to "appcfg.py update" in a python script?

2008-11-08 Thread Alexander Orlov
On Nov 7, 9:07 pm, "David Symonds" <[EMAIL PROTECTED]> wrote: > You'll want to use os.popen instead. How should I exactly use it? os.popen(cmd, args) resp. os.execv('%s/appcfg.py' % PATH_GAE, args) results in "close failed: [Errno 11] Resource temporarily unavailable" --~--~-~--~

[google-appengine] Re: How to pass the password to "appcfg.py update" in a python script?

2008-11-07 Thread Calvin Spealman
I suggest the subprocess module for consistant process invocation in all circumstances. On Nov 7, 2008 3:07 PM, "David Symonds" <[EMAIL PROTECTED]> wrote: On Fri, Nov 7, 2008 at 11:29 AM, Alexander Orlov <[EMAIL PROTECTED]> wrote: > os.ex... Check the Python documentation, because you've misu

[google-appengine] Re: How to pass the password to "appcfg.py update" in a python script?

2008-11-07 Thread David Symonds
On Fri, Nov 7, 2008 at 11:29 AM, Alexander Orlov <[EMAIL PROTECTED]> wrote: >os.execv('%s/appcfg.py' % PATH_GAE, args) Check the Python documentation, because you've misunderstood os.execv. You'll want to use os.popen instead. Dave. --~--~-~--~~~---~--~