From cbac60598985697079f78f9b7edbc5b0141f4f23 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:28:24 +0200 Subject: [PATCH] use f-strings --- client/ayon_core/addon/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/ayon_core/addon/base.py b/client/ayon_core/addon/base.py index 1f1e749865..878c50e039 100644 --- a/client/ayon_core/addon/base.py +++ b/client/ayon_core/addon/base.py @@ -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)