Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit 9daf2a9

Browse files
committed
fix host instalation
1 parent 9328cb9 commit 9daf2a9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

avalon/maya/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
IS_HEADLESS = not hasattr(cmds, "about") or cmds.about(batch=True)
3434

3535

36-
def install(config):
36+
def install():
3737
"""Install Maya-specific functionality of avalon-core.
3838
3939
This function is called automatically on calling `api.install(maya)`.

avalon/nuke/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def ls():
236236
yield container
237237

238238

239-
def install(config):
239+
def install():
240240
"""Install Nuke-specific functionality of avalon-core.
241241
242242
This is where you install menus and register families, data

avalon/pipeline.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,9 @@ class IncompatibleLoaderError(ValueError):
5252

5353
def install(host):
5454
"""Install `host` into the running Python session.
55-
5655
Arguments:
5756
host (module): A Python module containing the Avalon
5857
avalon host-interface.
59-
6058
"""
6159

6260
io.install()
@@ -79,16 +77,18 @@ def install(host):
7977

8078
# Optional host install function
8179
if hasattr(host, "install"):
82-
host.install(config)
80+
host.install()
8381

8482
# Optional config.host.install()
8583
host_name = host.__name__.rsplit(".", 1)[-1]
8684
config_host = lib.find_submodule(config, host_name)
87-
if hasattr(config_host, "install"):
88-
config_host.install()
85+
if config_host != host:
86+
if hasattr(config_host, "install"):
87+
config_host.install()
8988

9089
register_host(host)
9190
register_config(config)
91+
9292
config.install()
9393

9494
self._is_installed = True

0 commit comments

Comments
 (0)