Skip to content

Commit eca828a

Browse files
authored
torchx runner: only add config files that can be accessed.
Differential Revision: D59290870 Pull Request resolved: #927
1 parent 744571e commit eca828a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchx/runner/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def find_configs(dirs: Optional[Iterable[str]] = None) -> List[str]:
489489
dirs = DEFAULT_CONFIG_DIRS
490490
for d in dirs:
491491
configfile = Path(d) / CONFIG_FILE
492-
if configfile.exists():
492+
if os.access(configfile, os.R_OK):
493493
config_files.append(str(configfile))
494494
return config_files
495495

0 commit comments

Comments
 (0)