Re: subprocess.Popen calling httpd reload never finishes

2010-08-18 Thread Nan
On Aug 18, 12:37 pm, Albert Hopkins wrote: > On Wed, 2010-08-18 at 06:58 -0700, Nan wrote: > > Ah, I'd been told that there would be no conflict, and that this was > > just reloading the configuration, not restarting Apache. > > > I do need the web app to instruct

Re: subprocess.Popen calling httpd reload never finishes

2010-08-18 Thread Nan
On Aug 17, 8:14 pm, Albert Hopkins wrote: > On Tue, 2010-08-17 at 12:55 -0700, Nan wrote: > > Hi folks -- > > > I have a Python script running under Apache/mod_wsgi that needs to > > reload Apache configs as part of its operation.  The script continues > > to exec

subprocess.Popen calling httpd reload never finishes

2010-08-17 Thread Nan
Hi folks -- I have a Python script running under Apache/mod_wsgi that needs to reload Apache configs as part of its operation. The script continues to execute after the subprocess.Popen call. The communicate() method returns the correct text ("Reloading httpd: [ OK ]"), and I get a returncode

virtualenv / virtualenvwrapper resetting $PATH?

2010-06-16 Thread Nan
I just installed virtualenv and virtualenvwrapper on an OS X machine (10.6). My ~/.bash_login adds a few paths to the $PATH environment variable, but upon activating a virtualenv with "workon", those paths go missing from $PATH (and are not restored when I deactivate the virtualenv either). Any s

newbie question

2008-11-26 Thread Nan
Hello, I just started to use Python. I wrote the following code and expected 'main' would be called. def main(): print "hello" main But I was wrong. I have to use 'main()' to invoke main. The python interpreter does not give any warnings for the above code. Is there any way/tool to easily d

Re: Regexp problem with `('

2007-03-22 Thread Zeng Nan
On Thu, Mar 22, 2007 at 01:26:22AM -0700, Johny wrote: > I have the following text > > Goods Item 146 (174459989) - OurWebSite > > from which I need to extract > `Goods Item 146 ' > > Can anyone help with regexp? > Thank you for help > L. (G

Re: Translate this to python?

2006-01-03 Thread Zeng Nan
nts): i = j -- Zeng Nan Simple is Beautiful. MY BLOG: http://zengnan.blogspot.com pgpGFuV3FkTgH.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list