Message249936
| Author | mu_mind |
|---|---|
| Recipients | mu_mind |
| Date | 2015-09-05.22:05:47 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1441490748.21.0.647656961559.issue25012@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
There doesn't seem to be any helper in pathlib to expand a relative path to an absolute path *without* resolving symlinks.
For example, if I want to convert
pathlib.Path('some/path')
to
pathlib.Path('/full/path/to/some/path')
where some/path is a symlink, my best option seems to be
pathlib.Path(os.path.abspath(str(pathlib.Path('some/path')))) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-09-05 22:05:48 | mu_mind | set | recipients: + mu_mind |
| 2015-09-05 22:05:48 | mu_mind | set | messageid: <1441490748.21.0.647656961559.issue25012@psf.upfronthosting.co.za> |
| 2015-09-05 22:05:48 | mu_mind | link | issue25012 messages |
| 2015-09-05 22:05:47 | mu_mind | create | |