Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
added deprecation warning for 'get_creator_plugin_paths'
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Dec 12, 2022
1 parent 27cb651 commit d6b384f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openpype/modules/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ def get_create_plugin_paths(self, host_name):
host_name (str): For which host are the plugins meant.
"""

if hasattr(self, "get_creator_plugin_paths"):
# TODO remove in 3.16
self.log.warning((
"DEPRECATION WARNING: Using method 'get_creator_plugin_paths'"
" which was renamed to 'get_create_plugin_paths'."
))
return self.get_creator_plugin_paths(host_name)
return self._get_plugin_paths_by_type("create")

def get_load_plugin_paths(self, host_name):
Expand Down

0 comments on commit d6b384f

Please sign in to comment.