Just wondering how many people use a path module in Python such as Jason Orendorff's one, instead of using os.path
for joining and splitting paths? Have you used:
- Jason's path module (updated for PEP 355)
- Mike Orr's Unipath, basically a more modern version of the above
- Noam Raphael's alternative path module that subclasses tuple instead of str
I know Jason's path module was made into PEP 355 and rejected by the BDFL. This seems like it was mainly because it tried to do everything in one class.
Our use case is mainly to simplify joining and splitting components of paths, so we'd be quite happy if such a path class only implemented the split/join type of operations. Who wouldn't want to do this:
path(build_dir, path(source_file).name)
or this:
build_dir / path(source_file).name
instead of this:
os.path.join(build_dir, os.path.basename(source_file))