Update client/ayon_core/pipeline/publish/lib.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Ondřej Samohel 2025-03-18 11:22:24 +01:00 committed by GitHub
parent d313740434
commit 44e32c5bfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -360,7 +360,7 @@ def get_plugin_settings(plugin, project_settings, log, category=None):
# Settings category determined from path # Settings category determined from path
# - usually path is './<category>/plugins/publish/<plugin file>' # - usually path is './<category>/plugins/publish/<plugin file>'
# - category can be host name of addon name ('maya', 'deadline', ...) # - category can be host name of addon name ('maya', 'deadline', ...)
filepath = os.path.normpath(inspect.getfile(plugin.__class__)) filepath = os.path.normpath(inspect.getfile(plugin))
split_path = filepath.rsplit(os.path.sep, 5) split_path = filepath.rsplit(os.path.sep, 5)
if len(split_path) < 4: if len(split_path) < 4: