File size: 308 Bytes
901e06a
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import os
import importlib

# automatically import any Python files in the criterions/ directory
for file in os.listdir(os.path.dirname(__file__)):
    if file.endswith(".py") and not file.startswith("_"):
        file_name = file[: file.find(".py")]
        importlib.import_module("agent.mt." + file_name)