Why is pathlib.Path(__file__).parent.parent sensitive to my working directory?

前端 未结 0 972
时光取名叫无心
时光取名叫无心 2020-12-21 13:04

I have a script that\'s two directories down.

❯ tree
.
└── foo
    └── bar
        └── test.py
❯ cd foo/bar
❯ cat test.py

    from pathlib import Path
    pr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题