Skip to content

Commit ba49ef6

Browse files
authored
AC: accept namespace without definitions (#2939)
1 parent 3d722bb commit ba49ef6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/accuracy_checker/openvino/tools/accuracy_checker/config/config_reader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ def _read_configs(arguments):
146146
definitions = os.environ.get(DEFINITION_ENV_VAR) or local_config.get('global_definitions')
147147
if definitions:
148148
definitions = read_yaml(Path(arguments.config).parent / definitions)
149-
global_config = read_yaml(arguments.definitions) if arguments.definitions else definitions
149+
global_config = (
150+
read_yaml(arguments.definitions) if 'definitions' in arguments and arguments.definitions else definitions
151+
)
150152

151153
return global_config, local_config
152154

0 commit comments

Comments
 (0)