Return a new path pointing to the current working directory.
(cls)
| 923 | |
| 924 | @classmethod |
| 925 | def cwd(cls): |
| 926 | """Return a new path pointing to the current working directory.""" |
| 927 | cwd = os.getcwd() |
| 928 | path = cls(cwd) |
| 929 | path._str = cwd # getcwd() returns a normalized path |
| 930 | return path |
| 931 | |
| 932 | def resolve(self, strict=False): |
| 933 | """ |