Return a new path pointing to the current working directory.
(cls)
| 1121 | |
| 1122 | @classmethod |
| 1123 | def cwd(cls): |
| 1124 | """Return a new path pointing to the current working directory.""" |
| 1125 | cwd = os.getcwd() |
| 1126 | path = cls(cwd) |
| 1127 | path._str = cwd # getcwd() returns a normalized path |
| 1128 | return path |
| 1129 | |
| 1130 | def resolve(self, strict=False): |
| 1131 | """ |