From f0f08456606a41c3bae49d8c3c625061fee12e54 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005287564 Date: Wed, 3 Jan 2024 06:54:33 -0800 Subject: [PATCH] [Codemod][Convert importlib.import_module to Python import] [batch:3/52] fbcode Reviewed By: azad-meta Differential Revision: D52501796 fbshipit-source-id: 957937072e17d1d7426578e53b021c37e2285586 --- mmf/utils/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmf/utils/env.py b/mmf/utils/env.py index f7b546dd0..51dae4b36 100644 --- a/mmf/utils/env.py +++ b/mmf/utils/env.py @@ -165,7 +165,7 @@ def setup_imports(): common_pattern = os.path.join(common_folder, "**", "*.py") modules_pattern = os.path.join(modules_folder, "**", "*.py") - importlib.import_module("mmf.common.meter") + import mmf.common.meter files = ( glob.glob(datasets_pattern, recursive=True)