comment sneakernet

This commit is contained in:
Kevin Froman 2020-03-30 21:14:48 -05:00
parent 1bd0aa9419
commit 09134eaba4
1 changed files with 2 additions and 0 deletions

View File

@ -46,9 +46,11 @@ class _Importer(FileSystemEventHandler):
def sneakernet_import_thread():
"""Add block data dir & confed paths to fs observer to watch for new bls"""
observer = Observer()
for path in watch_paths:
observer.schedule(_Importer(), path, recursive=True)
observer.start()
while observer.isAlive():
# call import func with timeout
observer.join(60)