mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
Because 0MQ fails.
This commit is contained in:
parent
f6e4ea2270
commit
be86737ca7
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@ import zmq
|
||||||
import base64
|
import base64
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description='Take files from a directory and push them into a 0MQ feed.')
|
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()
|
messagedata = open(os.path.join(dirname, filename)).read()
|
||||||
print(os.path.join(dirname, filename))
|
print(os.path.join(dirname, filename))
|
||||||
socket.send('{} {} {}'.format(args.channel, filename, base64.b64encode(messagedata)))
|
socket.send('{} {} {}'.format(args.channel, filename, base64.b64encode(messagedata)))
|
||||||
|
time.sleep(.1)
|
||||||
|
|
Loading…
Reference in a new issue