mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use setattr
This commit is contained in:
parent
882c0bcc6a
commit
d7433f84d7
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ def _backwards_compatibility_product_name(func):
|
|||
# Add attribute to function to identify it as the new function
|
||||
# so other addons can easily identify it.
|
||||
# >>> geattr(get_product_name, "use_entities", False)
|
||||
func.use_entities = True
|
||||
setattr(func, "use_entities", True)
|
||||
|
||||
@wraps(func)
|
||||
def inner(*args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue