Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ynput committed Sep 13, 2024
1 parent 154eab6 commit 5e399e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/ayon_usd/standalone/usd/pinning/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .__pinning_file_generation_funcs import generate_pinning_file
from ._pinning_file_generation_funcs import generate_pinning_file

__all__ = ["generate_pinning_file"]
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@

log = logging.getLogger(__name__)


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

path = path[0].lower() + path[1:]

return os.path.normpath(path)


def is_uri(path: str) -> bool:
parsed = urlparse(path)
return bool(parsed.scheme)
Expand Down

0 comments on commit 5e399e6

Please sign in to comment.