mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
use f-strings
This commit is contained in:
parent
df3670f30f
commit
cbac605989
1 changed files with 4 additions and 4 deletions
|
|
@ -438,8 +438,8 @@ def _load_addons_in_core(
|
|||
if not os.path.exists(init_path):
|
||||
log.debug((
|
||||
"Addon directory does not contain __init__.py"
|
||||
" file {}"
|
||||
).format(fullpath))
|
||||
f" file {fullpath}"
|
||||
))
|
||||
continue
|
||||
|
||||
elif ext not in (".py", ):
|
||||
|
|
@ -449,9 +449,9 @@ def _load_addons_in_core(
|
|||
# - check manifest and content of manifest
|
||||
try:
|
||||
# Don't import dynamically current directory modules
|
||||
new_import_str = "{}.{}".format(modules_key, basename)
|
||||
new_import_str = f"{modules_key}.{basename}"
|
||||
|
||||
import_str = "ayon_core.modules.{}".format(basename)
|
||||
import_str = f"ayon_core.modules.{basename}"
|
||||
default_module = __import__(import_str, fromlist=("", ))
|
||||
sys.modules[new_import_str] = default_module
|
||||
setattr(openpype_modules, basename, default_module)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue