From c9795926a52562aded424b00ea8ad6269c836fbd Mon Sep 17 00:00:00 2001 From: yvesf Date: Fri, 2 Apr 2010 19:25:08 +0000 Subject: examples -> bin git-svn-id: http://10.2.2.13/svn/common/ebus@1628 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- bin/ebus_dump | 11 +++++++++++ dist/ebus-0.2-py2.5.egg | Bin 9856 -> 10127 bytes examples/dumper.py | 11 ----------- setup.py | 1 + 4 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 bin/ebus_dump delete mode 100644 examples/dumper.py diff --git a/bin/ebus_dump b/bin/ebus_dump new file mode 100644 index 0000000..01d2ede --- /dev/null +++ b/bin/ebus_dump @@ -0,0 +1,11 @@ +# -*- coding:utf8 -*- +import asyncore +from ebus import EbusReader + +class MyEbusReader(EbusReader): + def handle_ebus(self,ebus_packet): + if ebus_packet.values() != dict(): + print ebus_packet + +MyEbusReader() +asyncore.loop() diff --git a/dist/ebus-0.2-py2.5.egg b/dist/ebus-0.2-py2.5.egg index 4e2d848..3c3cf9d 100644 Binary files a/dist/ebus-0.2-py2.5.egg and b/dist/ebus-0.2-py2.5.egg differ diff --git a/examples/dumper.py b/examples/dumper.py deleted file mode 100644 index 01d2ede..0000000 --- a/examples/dumper.py +++ /dev/null @@ -1,11 +0,0 @@ -# -*- coding:utf8 -*- -import asyncore -from ebus import EbusReader - -class MyEbusReader(EbusReader): - def handle_ebus(self,ebus_packet): - if ebus_packet.values() != dict(): - print ebus_packet - -MyEbusReader() -asyncore.loop() diff --git a/setup.py b/setup.py index e675b84..ee95d97 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ setup( author='xapek.org', author_email='ebus@xapek.org', url='http://xapek.org', + scripts=["bin/ebus_dump"], packages=find_packages(), package_data={'doc':['*.txt'], 'xml':['*.xml']}, include_package_data = True, -- cgit v1.2.1