ignore config file ending with '~' #78
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue