Skip to content

Commit

Permalink
torchx runner: only add config files that can be accessed.
Browse files Browse the repository at this point in the history
Differential Revision: D59290870

Pull Request resolved: #927
  • Loading branch information
rb2k authored Jul 11, 2024
1 parent 744571e commit eca828a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchx/runner/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def find_configs(dirs: Optional[Iterable[str]] = None) -> List[str]:
dirs = DEFAULT_CONFIG_DIRS
for d in dirs:
configfile = Path(d) / CONFIG_FILE
if configfile.exists():
if os.access(configfile, os.R_OK):
config_files.append(str(configfile))
return config_files

Expand Down

0 comments on commit eca828a

Please sign in to comment.