Skip to content

Commit

Permalink
[Codemod][Convert importlib.import_module to Python import] [batch:3/…
Browse files Browse the repository at this point in the history
…52] fbcode

Reviewed By: azad-meta

Differential Revision: D52501796

fbshipit-source-id: 957937072e17d1d7426578e53b021c37e2285586
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Jan 3, 2024
1 parent 6074484 commit f0f0845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmf/utils/env.py
Expand Up @@ -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)
Expand Down

0 comments on commit f0f0845

Please sign in to comment.