On 05/12/2025 05:47, Em wrote:
-----Original Message-----
From: MRAB <[email protected]>
Sent: Thursday, December 4, 2025 10:52 PM
To: [email protected]
Subject: Re: A switch somewhere, or bug? CORRECTION

On 04/12/2025 18:25, Em wrote:
Two computers, both alike in dignity, in fair windows land, where we
set our scene......

in Win10/Python 3.13 my program runs as well as can be expected.
However, on my new computer Win11/Python 3.14.1 there is a peculiarity.

On the new machine, when I click on the file name, it immediately dumps
out.
I go in with IDLE and it runs fine with no indication of any error.

I believe this line is the culprit:
Starter = open("HLYlog.txt", "w")

Thoughts appreciated.
-That's a relative path. Are you sure that the current working directory is
what
-you expect? It's generally better to work with absolute paths.

Relative or not, I can't see how that could possibly make any difference. It
worked on the Win10 computer for both double-tap on the file and when using
IDLE. It worked on the Win11 computer when activated through IDLE but not
when I double-tapped to activate it. On the WIN11 computer.

In other words, it worked on 3/4 of the methods and not on the one of the
four.

If it's a relative path, it might not be looking in the same directory. If it can't find the find, it'll raise an exception and quit the program if you're not catching the exception.
Did it work for you , for both techniques, on a Win11 computer?

I recently switched from Windows 10 to Linux, and I've never used Windows 11.
--
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to