Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions python/tk_multi_publish2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import os
import pprint
import sys

import sgtk

Expand Down Expand Up @@ -340,6 +341,9 @@ def get_conflicting_publishes(context, path, publish_name, filters=None):

# ensure the path is normalized for comparison
normalized_path = sgtk.util.ShotgunPath.normalize(path)
# on windows compare paths case insensitively
if sys.platform == "win32":
normalized_path = normalized_path.lower()

# next, extract the publish path from each of the returned publishes and
# compare it against the supplied path. if the paths match, we add the
Expand All @@ -352,6 +356,10 @@ def get_conflicting_publishes(context, path, publish_name, filters=None):
# ensure the published path is normalized for comparison
normalized_publish_path = sgtk.util.ShotgunPath.normalize(
publish_path)

if sys.platform == "win32":
normalized_publish_path = normalized_publish_path.lower()

if normalized_path == normalized_publish_path:
matching_publishes.append(publish)

Expand Down