os.path.relpath() has existed since Python 2.6, so we can safely use
it. This fixes a bug in the current code when the common prefix is "/"
(in which case uplevel would be one less than it should).
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG4e05272dd681: packaging: leverage os.path.relpath() in setup.py
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.