Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/andrew-d/sniffer into andre…
Browse files Browse the repository at this point in the history
…w-d-master

Conflicts:
	requirements.txt
  • Loading branch information
jeffh committed Jul 31, 2012
2 parents 27b1822 + 17e2e50 commit 21dcd6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
python-termstyle==0.1.10
python-termstyle==0.1.5
colorama==0.2.4

# supports nose out of the box
# for reasonable defaults, we use nose.
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
author_email=__author_email__,
url='http://github.com/jeffh/sniffer/',
install_requires=[
'colorama',
'python-termstyle',
'nose',
],
Expand Down
7 changes: 5 additions & 2 deletions sniffer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from metadata import __version__
import sys

import colorama
colorama.init()

__all__ = ['run', 'main']

def run(sniffer_instance=None, wait_time=0.5, clear=True, args=(), debug=False):
Expand Down Expand Up @@ -34,7 +37,7 @@ def run(sniffer_instance=None, wait_time=0.5, clear=True, args=(), debug=False):
scanner = Scanner(('.',))
#sniffer = sniffer_cls(tuple(args), clear, debug)
sniffer_instance.set_up(tuple(args), clear, debug)

sniffer_instance.observe_scanner(scanner)
scanner.loop(wait_time)

Expand Down Expand Up @@ -63,7 +66,7 @@ def main(sniffer_instance=None, test_args=(), progname=sys.argv[0], args=sys.arg
"arguments.)")
(options, args) = parser.parse_args(args)
test_args = test_args + tuple(options.test_args)

if options.debug:
print "Options:", options
print "Test Args:", test_args
Expand Down

0 comments on commit 21dcd6e

Please sign in to comment.