Re: Subprocess.popen() on win32?

Mats Wichmann <[email protected]> Fri, 5 Oct 2018 11:48:50 -0600
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <[email protected]>
On 10/05/2018 11:37 AM, Jason Kenny wrote:
> Been using popen with parts via overriding SPAWN var since the start.
> 
> +1 on having this be the default
> 
> Jason
> 
> Get Outlook for Android<https://aka.ms/ghei36>
> 
> ________________________________
> From: Scons-dev <[email protected]> on behalf of Bill Deegan <bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org>
> Sent: Friday, October 5, 2018 10:32:50 AM
> To: SCons developer list
> Subject: Re: [Scons-dev] Subprocess.popen() on win32?
> 
> Come now.
> Win32.py's spawn implementation was updated in 2012.. ;)
> 
> If we universally switch to subprocess.Popen(), then we can safely chdir for non python function actions.
> But passing in the cwd argument.
> 
> That seems likely to be useful..
> 
> -Bill

I've had on my informal list of "modernizations" to look at wrenching
forward all of the os.system, os.spawn*, os.popen, etc. calls to use
subprocess.  I think I even ran an experiment with it once, but don't
seem to have it saved. Maybe I'll try that again if it's of interest?