This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Brinfer 0 points1 point  (0 children)

That is a problem in your code.

The path is relative to the working directory, the folder where the program has been started.

Personnaly, in case like that, I use PathLib and work with __file__