mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
ftrack_server do not look for ignore_me attribute
This commit is contained in:
parent
fcd1bb98e4
commit
24974b6dab
1 changed files with 2 additions and 9 deletions
|
|
@ -80,23 +80,16 @@ class FtrackServer():
|
|||
if '.pyc' in file or '.py' not in file:
|
||||
continue
|
||||
|
||||
ignore = 'ignore_me'
|
||||
mod = importlib.import_module(os.path.splitext(file)[0])
|
||||
importlib.reload(mod)
|
||||
mod_functions = dict(
|
||||
[
|
||||
(name, function)
|
||||
for name, function in mod.__dict__.items()
|
||||
if isinstance(function, types.FunctionType) or
|
||||
name == ignore
|
||||
if isinstance(function, types.FunctionType)
|
||||
]
|
||||
)
|
||||
# Don't care about ignore_me files
|
||||
if (
|
||||
ignore in mod_functions and
|
||||
mod_functions[ignore] is True
|
||||
):
|
||||
continue
|
||||
|
||||
# separate files by register function
|
||||
if 'register' not in mod_functions:
|
||||
msg = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue