Message249936
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')))) |
|
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 | |
|