From be86737ca7bd4933a825d3bf82e7eab8963f5559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 11 Mar 2016 16:16:53 +0100 Subject: [PATCH] Because 0MQ fails. --- bin/import_dir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/import_dir.py b/bin/import_dir.py index dd3777b0..4cf308eb 100755 --- a/bin/import_dir.py +++ b/bin/import_dir.py @@ -5,7 +5,7 @@ import zmq import base64 import argparse import os - +import time if __name__ == "__main__": parser = argparse.ArgumentParser(description='Take files from a directory and push them into a 0MQ feed.') @@ -24,3 +24,4 @@ if __name__ == "__main__": messagedata = open(os.path.join(dirname, filename)).read() print(os.path.join(dirname, filename)) socket.send('{} {} {}'.format(args.channel, filename, base64.b64encode(messagedata))) + time.sleep(.1)