Skip to content

Commit

Permalink
Update Lib/pathlib.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
barneygale and AlexWaygood authored Dec 4, 2023
1 parent f3bcb4c commit 2ad781e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1415,10 +1415,10 @@ def absolute(self):
"""
if self.is_absolute():
return self
elif self.root:
if self.root:
drive = os.path.splitroot(os.getcwd())[0]
return self._from_parsed_parts(drive, self.root, self._tail)
elif self.drive:
if self.drive:
# There is a CWD on each drive-letter drive.
cwd = os.path.abspath(self.drive)
else:
Expand Down

0 comments on commit 2ad781e

Please sign in to comment.