@@ -53,9 +53,9 @@ def load(cli, caller_file):
5353 f'.{ cli .name } .config.json' , f'{ cli .name } .config.json'
5454 ]
5555 for filename in possile_config_filenames :
56- cli .config_path = path .join (cli .project_root , filename )
57- if path .exists (cli .config_path ):
58- cli .config = data .sns .from_dict (data .json .read (cli .config_path ))
56+ cli .config_filepath = path .join (cli .project_root , filename )
57+ if path .exists (cli .config_filepath ):
58+ cli .config = data .sns .from_dict (data .json .read (cli .config_filepath ))
5959 cli .config_filename = filename
6060 break
6161
@@ -70,7 +70,7 @@ def load(cli, caller_file):
7070 for forbidden in ('default_val' , 'parser' ): # remove custom attrs
7171 kwargs .pop (forbidden , None )
7272 argp .add_argument (* args , ** kwargs )
73- cli .config .__dict__ .update ({ key :val for key ,val in vars (argp .parse_args ()).items () if val is not None })
73+ cli .config .__dict__ .update ({ key :val for key ,val in vars (argp .parse_args ()).items () if val is not None })
7474
7575 # Init cli.config vals
7676 for name , ctrl in vars (controls ).items ():
@@ -83,5 +83,5 @@ def load(cli, caller_file):
8383 val = ctrl .default_val
8484 setattr (cli .config , name , val )
8585
86- if cli .config .exclude_langs :
86+ if cli .config .exclude_langs : # trim cli.config.target_langs
8787 cli .config .target_langs = [lang for lang in cli .config .target_langs if lang not in cli .config .exclude_langs ]
0 commit comments