Message369410
```
import os
from pathlib import Path
os.chdir(Path(__file__).parent)
print(Path(__file__).absolute())
```
I put the code into a file in `/tmp/test.py`, and execute it from `/tmp/` directory like below. Then the output showed `/tmp/scripts/scripts/test.py`.
```
$ python scripts/test.py
/tmp/scripts/scripts/test.py
```
After executing `os.chdir`, pathlib's path handling is completely broken. |
|
Date |
User |
Action |
Args |
2020-05-20 00:50:18 | Y Ono | set | recipients:
+ Y Ono |
2020-05-20 00:50:18 | Y Ono | set | messageid: <1589935818.51.0.287299786193.issue40693@roundup.psfhosted.org> |
2020-05-20 00:50:18 | Y Ono | link | issue40693 messages |
2020-05-20 00:50:18 | Y Ono | create | |
|