Skip to content

Commit

Permalink
Fix shotgrid publish plugins python 2 & 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jlorrain authored and ClementHector committed Feb 7, 2022
1 parent 16a2eef commit 9488240
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import os
import sys
import pyblish.api
from urlparse import urlparse
import shotgun_api3
from openpype.lib import OpenPypeSecureRegistry
from openpype.api import get_project_settings

if sys.version_info[0] == 2:
from urlparse import urlparse
else:
from urllib.parse import urlparse


class CollectShotgridSession(pyblish.api.ContextPlugin):
"""Collect shotgrid session using user credentials"""
Expand Down

0 comments on commit 9488240

Please sign in to comment.