Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: forking and avoiding zombies! (http://www.velocityreviews.com/forums/t955380-re-forking-and-avoiding-zombies.html)

Dennis Lee Bieber 12-11-2012 07:40 PM

Re: forking and avoiding zombies!
 
On Tue, 11 Dec 2012 10:34:23 -0300, peter <pjmakey2@gmail.com> declaimed
the following in gmane.comp.python.general:

>
> stderrfile = '%s/error.log' % os.getcwd()
> stdoutfile = '%s/out.log' % os.getcwd()
>

Ouch...

stdoutfile = os.path.join(os.getcwd(), "out.log")

minimizes any OS specific quirks in path naming...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/



All times are GMT. The time now is 08:18 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.