Message345379
Assuming the given path contains a '~' character, it would be nice to have a function to expand the given path so any further calls to an .exists doesn't fail.
A prototype of the function could be
# Expand the home path in *ix based systems if any
if '~' in s:
x = [x for x in Path(s).parts if x not in '~']
p = Path.home()
for item in x:
p = p.joinpath(item) |
|
Date |
User |
Action |
Args |
2019-06-12 16:49:14 | Andrea Moro | set | recipients:
+ Andrea Moro |
2019-06-12 16:49:14 | Andrea Moro | set | messageid: <1560358154.87.0.642844029976.issue37255@roundup.psfhosted.org> |
2019-06-12 16:49:14 | Andrea Moro | link | issue37255 messages |
2019-06-12 16:49:14 | Andrea Moro | create | |
|