🐛 Use tqdm's write() instead of logging during scanning

master
Gerber, Mike 3 years ago
parent 6a549968b5
commit 4bb3379ab1

@ -90,7 +90,7 @@ def alto_to_dict(alto, raise_errors=True):
def walk(m): def walk(m):
# XXX do this in modstool, too # XXX do this in modstool, too
if os.path.isdir(m): if os.path.isdir(m):
logger.info('Scanning directory {}'.format(m)) tqdm.write(f'Scanning directory {m}')
for f in tqdm(os.scandir(m), leave=False): for f in tqdm(os.scandir(m), leave=False):
if f.is_file() and not f.name.startswith('.'): if f.is_file() and not f.name.startswith('.'):
yield f.path yield f.path

Loading…
Cancel
Save