Skip to content

Commit

Permalink
Update client/ayon_usd/standalone/usd/pinning/_pinning_file_generatio…
Browse files Browse the repository at this point in the history
…n_funcs.py

Co-authored-by: Roy Nieterau <[email protected]>
  • Loading branch information
Lypsolon and BigRoy authored Sep 13, 2024
1 parent 90a4a16 commit d85ad96
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@


def _normalize_path(path):
if (sys.platform.startswith('win')
and len(path) > 1
and path[1] == ':'
):

path = path[0].lower() + path[1:]
# On windows force drive letter to lowercase
if sys.platform.startswith('win'):
drive, tail = os.path.splitdrive(path)
drive = drive.lower()
path = f"{drive}{tail}"

return os.path.normpath(path)

Expand Down

0 comments on commit d85ad96

Please sign in to comment.