Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions setup/tank_api_proxy/sgtk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@
pipeline_config = os.path.abspath(pipeline_config)
os.environ["TANK_CURRENT_PC"] = pipeline_config

# From: https://stackoverflow.com/a/40119302
try:
reload # Python 2.7
except NameError:
try:
from importlib import reload # Python 3.4+
except ImportError:
from imp import reload # Python 3.0 - 3.3

# ok we got the parent location
# prepend this to the python path and reload the module
# this way we will load the 'real' tank!
Expand Down
9 changes: 9 additions & 0 deletions setup/tank_api_proxy/tank/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@
pipeline_config = os.path.abspath(pipeline_config)
os.environ["TANK_CURRENT_PC"] = pipeline_config

# From: https://stackoverflow.com/a/40119302
try:
reload # Python 2.7
except NameError:
try:
from importlib import reload # Python 3.4+
except ImportError:
from imp import reload # Python 3.0 - 3.3

# ok we got the parent location
# prepend this to the python path and reload the module
# this way we will load the 'real' tank!
Expand Down