Re: A switch somewhere, or bug? CORRECTION

Sibylle Koczian via Python-list <[email protected]> Sun, 7 Dec 2025 17:41:29 +0100
Newsgroups gmane.comp.python.general
Message-ID <[email protected]>
Hello,

Am 07.12.2025 um 15:36 schrieb Em:
>
>
> -----Original Message-----
> From: Roel Schroeven <[email protected]>
> Sent: Sunday, December 7, 2025 7:23 AM
> To: [email protected]
> Subject: Re: A switch somewhere, or bug? CORRECTION
>
> Op 7/12/2025 om 1:54 schreef Thomas Passin:
>>> As I explained in my last post, that's because in Windows 11 when
>>> double-clicking, the working directory is the system's Windows
>>> directory, not the one your program is in.
>> Irrespective of anything else that's going on, that's not my experience.
>> I just tried, and double-clicking a python script makes the
>> directory that I have open in Explorer the current directory.
>> I've seen the same not just with scripts but also with executables.
>> I don't think this is the cause.
> Interesting. So, your system is corrected for this and mine, I guess, is not.
> For me, it fails each and every time I use a phrase like that in any program in WIN11.
Did you ever check the app aliases on your Windows 11 box? By default 
"python" and "python3" point to an "app installer" for the Microsoft 
Store Python app. Probably not what you want, but can simply be 
unchecked. I'm not sure from your description if that really is your 
problem, but it might be and it's easily checked.