ignore config file ending with '~' #78

Closed
erachen wants to merge 1 commits from (deleted):check_conf_file_name into main
1 changed files with 4 additions and 3 deletions

View File

@ -31,6 +31,7 @@ def collect_config_filenames(config_paths):
continue
for filename in os.listdir(path):
full_filename = os.path.join(path, filename)
if not os.path.isdir(full_filename):
yield full_filename
if not filename.endswith('~'):
full_filename = os.path.join(path, filename)
if not os.path.isdir(full_filename):
yield full_filename