[issue26866] Inconsistent environment in Windows using "Open With"

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-27 Thread Tom Middleton
Tom Middleton added the comment: I agree with your assessment Steve. I don't see there being a good fix to this. I also think it would be a bad idea to have the launcher change the current working directory. Example: c:\foo\> python d:\scripts\bar.py myfile (where myfile is in c:\foo\) A

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-27 Thread Steve Dower
Steve Dower added the comment: Wouldn't be surprised to see differences between Win7 and Win10 - the "current working directory" concept has essentially been deprecated in Windows for a while (at least through the GUI). Registering a system file association is something we could do for the

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-27 Thread Eryk Sun
Eryk Sun added the comment: Generally the directory that an application needs for its configuration files and data is either the script directory or an %AppData% or %LocalAppData% subdirectory. If the initial working directory matters for some reason (e.g. for writing output files), the

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-26 Thread Tom Middleton
Tom Middleton added the comment: That is interesting, in my use #3 seems to work. I am not certain if it matters whether the default application is already selected as python.exe or not. FWIW I'm on Windows 7 64 bit using 2.7.11 release install. **Full Disclosure** I did muck in the registry

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-26 Thread Steve Dower
Steve Dower added the comment: I don't think there's actually a way to fix this - the current working directory is inherited from the current process in the "Open with" case (FWIW, #3 also produces the same result as #1). I suspect it would need a fix in Windows, which is highly unlikely, or

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-26 Thread Tom Middleton
New submission from Tom Middleton: I have found that the execution of python scripts is inconsistent from the following methods: >From Explorer: 1) Right-Click->Open with->python.exe 2) Right-Click->Open (assuming python.exe being the "default" application) 3) Right-Click->Open with->"Choose