This repository was archived by the owner on Oct 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3333IS_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)`.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -52,11 +52,9 @@ class IncompatibleLoaderError(ValueError):
5252
5353def 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
You can’t perform that action at this time.
0 commit comments