Skip to main content
The 2024 Developer Survey results are live! See the results
4 events
when toggle format what by license comment
Dec 10, 2018 at 10:45 comment added martineau While the pathlib module is very "user friendly", it wasn't created until very late in the game. Personally I still prefer using os.path.relpath() as shown in the accepted answer because it will work in most versions of Python (including Python 2).
Nov 10, 2017 at 0:16 history edited pjgranahan CC BY-SA 3.0
Adds new lines to improve readability at a glance
May 23, 2017 at 11:54 history edited URL Rewriter Bot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Apr 24, 2017 at 23:06 history answered pjgranahan CC BY-SA 3.0