Author Andrea Moro
Recipients Andrea Moro
Date 2019-06-12.16:49:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:14Andrea Morosetrecipients: + Andrea Moro
2019-06-12 16:49:14Andrea Morosetmessageid: <>
2019-06-12 16:49:14Andrea Morolinkissue37255 messages
2019-06-12 16:49:14Andrea Morocreate