Re: A switch somewhere, or bug? CORRECTION
Chris Angelico via Python-list <[email protected]> Sat, 6 Dec 2025 18:03:53 +1100
| Newsgroups | gmane.comp.python.general |
|---|---|
| Message-ID | <CAPTjJmopWdUS3m+3RSL9+aN=OYjoH4nZGHwwunbCPBFgYZs+Cw@mail.gmail.com> |
On Sat, 6 Dec 2025 at 15:52, Michael Torrie via Python-list <[email protected]> wrote: > > On 12/5/25 6:36 PM, Chris Angelico via Python-list wrote: > > On Sat, 6 Dec 2025 at 12:33, Michael Torrie via Python-list > > <[email protected]> wrote: > >> Starter = open("HLYlog.txt","w"); > >> filepath = Starter.name > > > > Isn't that just... > > > > filepath = "HLYlog.txt" > > yup. But did you miss the os.path.abspath() bit? > I didn't, and that part IS useful and relevant, but the opening of the file just adds potential failure points without really adding anything. ChrisA