File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1902,7 +1902,7 @@ def _save_default_config_name(
1902
1902
# writing concurrently the same file
1903
1903
# * Config file is overwritten each time a config is generated. If the
1904
1904
# default config is changed, this will be updated.
1905
- config_path = config_dir / "metadata.json"
1905
+ config_path = config_dir / constants . METADATA_FILENAME
1906
1906
with utils .incomplete_file (config_path ) as tmp_config_path :
1907
1907
tmp_config_path .write_text (json .dumps (data ))
1908
1908
@@ -1911,7 +1911,9 @@ def load_default_config_name(
1911
1911
common_dir : epath .Path ,
1912
1912
) -> Optional [str ]:
1913
1913
"""Load `builder_cls` metadata (common to all builder configs)."""
1914
- config_path = epath .Path (common_dir ) / ".config/metadata.json"
1914
+ config_path = (
1915
+ epath .Path (common_dir ) / f".config/{ constants .METADATA_FILENAME } "
1916
+ )
1915
1917
if not config_path .exists ():
1916
1918
return None
1917
1919
data = json .loads (config_path .read_text ())
You can’t perform that action at this time.
0 commit comments