Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73844
| From | Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> |
|---|---|
| Subject | Re: Success with subprocess communicate on Windows? |
| Date | 2014-07-02 19:37 +0200 |
| References | <mailman.11386.1404248789.18130.python-list@python.org> <iq27r9p1gg7nampcd6rr0pftrshinm9oog@4ax.com> <lp0i1p$3gn$1@ger.gmane.org> <lp1fm0$8ci$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11414.1404322643.18130.python-list@python.org> (permalink) |
On 02.07.2014 19:31, Wolfgang Maier wrote: > > I am not 100% sure whether that is the problem, but from what I gather > from the subprocess module docs the args string is passed to the Windows > CreateProcess function as a single string. > To me this seems to imply that it is passed as the lpCommandLine > parameter (with Null for the lpApplicationName parameter). > This is what Microsoft says about this case > (http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx): > > > <quote> > If lpApplicationName is NULL, the first white space–delimited token of > the command line specifies the module name. If you are using a long file > name that contains a space, use quoted strings to indicate where the > file name ends and the arguments begin (see the explanation for the > lpApplicationName parameter). If the file name does not contain an > extension, .exe is appended. Therefore, if the file name extension is > .com, this parameter must include the .com extension. If the file name > ends in a period (.) with no extension, or if the file name contains a > path, .exe is not appended. If the file name does not contain a > directory path, the system searches for the executable file in the > following sequence. > </quote> > > So in your case the default behavior would be to add an .exe extension > to pyflakes, which is probably not what you intended ? > > Best, > Wolfgang > Ah, I forgot about your pyflakes -h example, which works, so my explanation must be wrong. Sorry.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Success with subprocess communicate on Windows? Terry Reedy <tjreedy@udel.edu> - 2014-07-01 17:05 -0400
Re: Success with subprocess communicate on Windows? Tim Roberts <timr@probo.com> - 2014-07-01 21:33 -0700
Re: Success with subprocess communicate on Windows? Terry Reedy <tjreedy@udel.edu> - 2014-07-02 05:05 -0400
Re: Success with subprocess communicate on Windows? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-07-02 19:31 +0200
Re: Success with subprocess communicate on Windows? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-07-02 19:37 +0200
Re: Success with subprocess communicate on Windows? Terry Reedy <tjreedy@udel.edu> - 2014-07-02 19:14 -0400
Re: Success with subprocess communicate on Windows? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-07-02 23:22 +0000
Re: Success with subprocess communicate on Windows? Ethan Furman <ethan@stoneleaf.us> - 2014-07-02 16:54 -0700
Re: Success with subprocess communicate on Windows? Terry Reedy <tjreedy@udel.edu> - 2014-07-03 00:09 -0400
Re: Success with subprocess communicate on Windows? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-07-03 10:03 +0200
Re: Success with subprocess communicate on Windows? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-07-03 11:22 +0200
csiph-web