ignore config file ending with '~' #78
|
@ -31,6 +31,7 @@ def collect_config_filenames(config_paths):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for filename in os.listdir(path):
|
for filename in os.listdir(path):
|
||||||
full_filename = os.path.join(path, filename)
|
if not filename.endswith('~'):
|
||||||
if not os.path.isdir(full_filename):
|
full_filename = os.path.join(path, filename)
|
||||||
yield full_filename
|
if not os.path.isdir(full_filename):
|
||||||
|
yield full_filename
|
||||||
|
|
Loading…
Reference in New Issue