mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fixed getting source path
This commit is contained in:
parent
dca53a183c
commit
04919acaeb
1 changed files with 1 additions and 4 deletions
|
|
@ -476,16 +476,13 @@ def filter_pyblish_plugins(plugins):
|
|||
if not presets:
|
||||
continue
|
||||
|
||||
file = os.path.normpath(inspect.getfile(plugin.__class__))
|
||||
file = os.path.normpath(inspect.getsourcefile(plugin))
|
||||
file = os.path.normpath(file)
|
||||
|
||||
# host determined from path
|
||||
host_from_file = file.split(os.path.sep)[-3:-2][0]
|
||||
plugin_kind = file.split(os.path.sep)[-2:-1][0]
|
||||
|
||||
print(host_from_file)
|
||||
print(plugin_kind)
|
||||
|
||||
try:
|
||||
config_data = presets[host]["publish"][plugin.__name__]
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue