1010import pkgutil
1111import re
1212import sys
13- from typing import Callable
1413
1514import tomli
1615
@@ -34,7 +33,7 @@ def read_configs( # noqa: C901: TODO: move modules into config
3433 Returns:
3534 Configuration object with populated configurations.
3635 """
37- config : Config = Config ([], [], [], None )
36+ config : Config = Config ()
3837
3938 dirname : str = os .path .dirname (__file__ )
4039
@@ -48,9 +47,6 @@ def read_configs( # noqa: C901: TODO: move modules into config
4847 framework_configs_path = os .path .join (
4948 dirname , "../configs/framework_info"
5049 ),
51- impl_postfix_path = os .path .join (
52- dirname , "../configs/impl_postfix.toml"
53- ),
5450 precision_dtypes_path = os .path .join (
5551 dirname , "../configs/precision_dtypes.toml"
5652 ),
@@ -97,13 +93,14 @@ def read_configs( # noqa: C901: TODO: move modules into config
9793 )
9894 if mod .framework_configs_path != "" :
9995 read_frameworks (config , mod .framework_configs_path )
100- if mod .impl_postfix_path != "" :
101- read_implementation_postfixes (config , mod .impl_postfix_path )
10296 if mod .precision_dtypes_path != "" :
10397 read_precision_dtypes (config , mod .precision_dtypes_path )
10498 if mod .path != "" :
10599 sys .path .append (mod .path )
106100
101+ for framework in config .frameworks :
102+ config .implementations += framework .postfixes
103+
107104 if implementations is None :
108105 implementations = [impl .postfix for impl in config .implementations ]
109106
0 commit comments