Re: using subprocess.Popen env parameter

2010-03-04 Thread Nobody
On Wed, 03 Mar 2010 09:05:47 -0800, enda man wrote: > cl_path = ms_vc_path + '\VC\bin' The backslash is used as an escape character within string literals. Either use raw strings: cl_path = ms_vc_path + r'\VC\bin' or escape the backslashes: cl_path = ms_vc_path + '\\VC\\bin' o

using subprocess.Popen env parameter

2010-03-03 Thread enda man
Hi, I want to use the env parameter to subprocess.Popen to pass in a path to a location the process needs to run, I do have a env variable already called MS_VC_PATH and I want to add to it, not set up more in the PATH variable. / ms_vc_path=os.environ['MS_VC_PATH'] cl_path = ms_vc_path + '\VC