Cleaner intermediate print during autoimport.

This commit is contained in:
Ray 2009-02-24 10:54:02 -05:00
parent f1530860d2
commit c535dc7f24
2 changed files with 3 additions and 2 deletions

View File

@ -106,7 +106,8 @@ class GuiAutoImport (threading.Thread):
"""Callback for timer to do an import iteration.""" """Callback for timer to do an import iteration."""
if self.doAutoImportBool: if self.doAutoImportBool:
self.importer.runUpdated() self.importer.runUpdated()
print "GuiAutoImport.import_dir done" sys.stdout.write(".")
sys.stdout.flush()
return True return True
else: else:
return False return False

View File

@ -320,7 +320,7 @@ class Importer:
sys.exit(0) sys.exit(0)
startpos=endpos startpos=endpos
ttime = time() - starttime ttime = time() - starttime
print "Total stored:", stored, "duplicates:", duplicates, "partial:", partial, "errors:", errors, " time:", ttime print "\rTotal stored:", stored, "duplicates:", duplicates, "partial:", partial, "errors:", errors, " time:", ttime
if stored==0: if stored==0:
if duplicates>0: if duplicates>0: