Skip to content

Commit

Permalink
Correct capitalization
Browse files Browse the repository at this point in the history
Signed-off-by: amorphousWaste <20346603+amorphousWaste@users.noreply.github.com>
  • Loading branch information
amorphousWaste authored and Jawabiscuit committed Sep 15, 2023
1 parent 0b5594c commit c7e7454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rez/utils/sourcecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def __init__(self, source=None, func=None, filepath=None,
self.filepath = filepath
if self.filepath:
drive_letter_match = _drive_start_regex.match(filepath)
# If converting the drive letter to posix, capitalize the drive
# If converting the drive letter to posix, lowercase the drive
# letter as per cygpath behavior.
if drive_letter_match:
self.filepath = _drive_start_regex.sub(
drive_letter_match.expand("/\\1/").upper(), filepath
drive_letter_match.expand("/\\1/").lower(), filepath
)
self.filepath = self.filepath.replace("\\", "/")

Expand Down

0 comments on commit c7e7454

Please sign in to comment.