Make condition function return path as expected by lib.config

This commit is contained in:
ZyX 2014-08-23 19:07:57 +04:00
parent 1a71ed3eba
commit f6f8dd8af3
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ from threading import Lock, Event
def _config_loader_condition(path):
return path and os.path.isfile(path)
if path and os.path.isfile(path):
return path
return None
def _find_config_files(search_paths, config_file, config_loader=None, loader_callback=None):