Skip to content

Commit ace0c79

Browse files
authored
Merge pull request #515 from jasperges/fix505
Remove unneeded `config` variable from host (un)install (closes #505)
2 parents add240f + 2a68a1f commit ace0c79

File tree

5 files changed

+10
-18
lines changed

5 files changed

+10
-18
lines changed

avalon/fusion/pipeline.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def ls():
4949
yield container
5050

5151

52-
def install(config):
52+
def install():
5353
"""Install Fusion-specific functionality of avalon-core.
5454
5555
This function is called automatically on calling `api.install(fusion)`.
@@ -76,14 +76,10 @@ def install(config):
7676
logger.setLevel(logging.DEBUG)
7777

7878

79-
def uninstall(config):
79+
def uninstall():
8080
"""Uninstall Fusion-specific functionality of avalon-core.
8181
8282
This function is called automatically on calling `api.uninstall()`.
83-
84-
Args:
85-
config: configuration module
86-
8783
"""
8884

8985
pyblish.api.deregister_host("fusion")

avalon/houdini/pipeline.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
IS_HEADLESS = not hasattr(hou, "ui")
2525

2626

27-
def install(config):
27+
def install():
2828
"""Setup integration
2929
Register plug-ins and integrate into the host
3030
@@ -40,14 +40,10 @@ def install(config):
4040
self._has_been_setup = True
4141

4242

43-
def uninstall(config):
43+
def uninstall():
4444
"""Uninstall Houdini-specific functionality of avalon-core.
4545
4646
This function is called automatically on calling `api.uninstall()`.
47-
48-
Args:
49-
config: configuration module
50-
5147
"""
5248

5349
pyblish.api.deregister_host("hython")

avalon/maya/pipeline.py

+2-2
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)`.
@@ -90,7 +90,7 @@ def get_main_window():
9090
return self._parent
9191

9292

93-
def uninstall(config):
93+
def uninstall():
9494
"""Uninstall Maya-specific functionality of avalon-core.
9595
9696
This function is called automatically on calling `api.uninstall()`.

avalon/nuke/pipeline.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def ls():
209209
yield container
210210

211211

212-
def install(config):
212+
def install():
213213
"""Install Nuke-specific functionality of avalon-core.
214214
215215
This is where you install menus and register families, data
@@ -241,7 +241,7 @@ def get_main_window():
241241
return self._parent
242242

243243

244-
def uninstall(config):
244+
def uninstall():
245245
"""Uninstall all that was previously installed
246246
247247
This is where you undo everything that was done in `install()`.

avalon/pipeline.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def install(host):
7676

7777
# Optional host install function
7878
if hasattr(host, "install"):
79-
host.install(config)
79+
host.install()
8080

8181
# Optional config.host.install()
8282
host_name = host.__name__.rsplit(".", 1)[-1]
@@ -119,7 +119,7 @@ def uninstall():
119119
config_host.uninstall()
120120

121121
try:
122-
host.uninstall(config)
122+
host.uninstall()
123123
except AttributeError:
124124
pass
125125

0 commit comments

Comments
 (0)