Re: [python-win32] problems with subprocess module and env parameter

2010-04-15 Thread Tim Roberts
Bill Janssen wrote: > Preston Landers wrote: > > > Ah, great! Thanks, Preston. That was it. Once I'd crunched all the > values to non-Unicode, it worked. Hmmm, I'd think maybe the > CreateProcess code would do that kind of normalization, or at last raise > a more comprehensible error. >

Re: [python-win32] problems with subprocess module and env parameter

2010-04-15 Thread Bill Janssen
Preston Landers wrote: > Your PATH is a Unicode string. I'm not sure offhand if that's acceptable or > not, but all the rest of the strings appear to be regular (non-unicode) > strings. > > You could also try: > > import types > for k, v in env.iteritems(): > if type(v) is not types.String

Re: [python-win32] problems with subprocess module and env parameter

2010-04-15 Thread Preston Landers
Your PATH is a Unicode string. I'm not sure offhand if that's acceptable or not, but all the rest of the strings appear to be regular (non-unicode) strings. You could also try: import types for k, v in env.iteritems(): if type(v) is not types.StringType: print k, v hope this helps, -Presto