Return a new path pointing to expanduser('~').
(cls)
| 1452 | |
| 1453 | @classmethod |
| 1454 | def home(cls): |
| 1455 | """Return a new path pointing to expanduser('~'). |
| 1456 | """ |
| 1457 | homedir = os.path.expanduser("~") |
| 1458 | if homedir == "~": |
| 1459 | raise RuntimeError("Could not determine home directory.") |
| 1460 | return cls(homedir) |
| 1461 | |
| 1462 | def as_uri(self): |
| 1463 | """Return the path as a URI.""" |