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: 7 additions & 1 deletion python/tk_multi_workfiles/actions/interactive_open_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ def _open_workfile(self, file, env, parent_ui):
src_path = None
work_path = file.path

# the context that the workfile will be opened in
new_ctx = env.context

# construct a context for this path to determine if it's in
# a user sandbox or not:
if env.context.user:
Expand Down Expand Up @@ -235,8 +238,11 @@ def _open_workfile(self, file, env, parent_ui):

src_path = work_path
work_path = local_path
# resolve the new context from the work path as it is
# different from the previous user's sandbox context
new_ctx = env.context.sgtk.context_from_path(work_path)

return self._do_copy_and_open(src_path, work_path, None, not file.editable, env.context, parent_ui)
return self._do_copy_and_open(src_path, work_path, None, not file.editable, new_ctx, parent_ui)

def _open_previous_publish(self, file, env, parent_ui):
"""
Expand Down