Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a much much simpler path normalizer and joiner.
I'm just so, so tired of futzing around with os.path.join() and os.path.normalize() not doing their jobs usefully. This version of normalize doesn't try to resolve .. or symlinks; it only de-dupes slashes. I can't find anywhere we depend on resolving .. or symlinks, so it's just not as pretty as it could be. So basically if you need to normalize slashes, use util.normalize_path_slashes() . If you need to resolve symlinks, use os.path.normalize() Signed-off-by: Peter Jones <pjones@redhat.com>
- Loading branch information