Zachary Ware <zachary.w...@gmail.com> added the comment:

I don't see anything broken here: `__file__` is "scripts/test.py", 
`Path(__file__).parent` is "scripts", and `__file__` doesn't change just 
because the working directory changed (it's a static string set at import time, 
which is only a relative path because you ran the file using a relative path).

----------
nosy: +zach.ware
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40693>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to