On 11/11/2016 03:24 AM, eryk sun wrote:
On Fri, Nov 11, 2016 at 10:46 AM, Thorsten Kampe wrote:
My goal is to verify that other shells/interpreters on Windows work
the same way as Python when running an application or creating a sub-
process. Cmd does not. What's else there? I have Bash here
On Fri, Nov 11, 2016 at 11:30 AM, Gisle Vanem via Python-list
wrote:
> Thorsten Kampe wrote:
>
>> My goal is to verify that other shells/interpreters on Windows work
>> the same way as Python when running an application or creating a sub-
>> process. Cmd does not. What's
Thorsten Kampe wrote:
> My goal is to verify that other shells/interpreters on Windows work
> the same way as Python when running an application or creating a sub-
> process. Cmd does not. What's else there? I have Bash here but that's
> a Cygwin executable. And Cygwin Python does not work like
On Fri, Nov 11, 2016 at 10:46 AM, Thorsten Kampe
wrote:
> * eryk sun (Fri, 11 Nov 2016 09:55:23 +)
>>
>> If it works like cmd.exe, then it does its own search using %Path%
>> and %PathExt%. For example:
>>
>> C:\>cmd /c "set "PATH=" & cmd"
>> 'cmd' is not
* eryk sun (Fri, 11 Nov 2016 09:55:23 +)
>
> If it works like cmd.exe, then it does its own search using %Path%
> and %PathExt%. For example:
>
> C:\>cmd /c "set "PATH=" & cmd"
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
>
>
On Fri, Nov 11, 2016 at 8:56 AM, Thorsten Kampe
wrote:
> * eryk sun (Fri, 11 Nov 2016 06:23:50 +)
>>
>> That's the application directory, which is the first place
>> CreateProcess looks (via the SearchPath call), as both of my examples
>> shows. In my case
* eryk sun (Fri, 11 Nov 2016 06:23:50 +)
>
> That's the application directory, which is the first place
> CreateProcess looks (via the SearchPath call), as both of my examples
> shows. In my case python.exe is located in the standard 3.5 system
> installation path, "C:\Program
On Fri, Nov 11, 2016 at 6:01 AM, Thorsten Kampe
wrote:
> * eryk sun (Thu, 10 Nov 2016 23:04:02 +)
>>
>> On Thu, Nov 10, 2016 at 9:58 PM, Thorsten Kampe
>> wrote:
>> >
>> > I'm trying to run a script with a different Python version by
>> >
* Thomas Nyberg (Thu, 10 Nov 2016 17:46:06 -0500)
>
> On 11/10/2016 05:32 PM, Thorsten Kampe wrote:
> > Yes. That works. But it's not like subprocess should work.
> >
>
> It certainly is odd. I can at least confirm that when I try to run your
> code I get the error that you're expecting, but I
* eryk sun (Thu, 10 Nov 2016 23:04:02 +)
>
> On Thu, Nov 10, 2016 at 9:58 PM, Thorsten Kampe
> wrote:
> >
> > I'm trying to run a script with a different Python version by
> > extending the path variable and executing "python.exe". It looks like
> > subprocess will
On Thu, Nov 10, 2016 at 9:58 PM, Thorsten Kampe
wrote:
>
> I'm trying to run a script with a different Python version by
> extending the path variable and executing "python.exe". It looks like
> subprocess will always run the current executing Python.
WinAPI
On 11/10/2016 05:32 PM, Thorsten Kampe wrote:
Yes. That works. But it's not like subprocess should work.
It certainly is odd. I can at least confirm that when I try to run your
code I get the error that you're expecting, but I run debian.
Have you tried using os.unsetenv()?
* Thomas Nyberg (Thu, 10 Nov 2016 17:07:35 -0500)
>
> On 11/10/2016 04:58 PM, Thorsten Kampe wrote:
> > Hi,
> >
> > I'm trying to run a script with a different Python version by
> > extending the path variable and executing "python.exe". It looks like
> > subprocess will always run the current
On 11/10/2016 04:58 PM, Thorsten Kampe wrote:
Hi,
I'm trying to run a script with a different Python version by
extending the path variable and executing "python.exe". It looks like
subprocess will always run the current executing Python.
> [...]
>
Thorsten
Have you tried using the full
Hi,
I'm trying to run a script with a different Python version by
extending the path variable and executing "python.exe". It looks like
subprocess will always run the current executing Python.
The following snippet demonstrates the problem:
"""
import os, subprocess
os.environ['PATH'] = ''
15 matches
Mail list logo