From ae7e18899954b662da5ce4ae10713ebdc82bff54 Mon Sep 17 00:00:00 2001 From: pi-rho Date: Sun, 10 Feb 2013 00:31:17 -0600 Subject: [PATCH] add an import harness to start-here.py --- extra/start-here.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extra/start-here.py b/extra/start-here.py index dbda74a..d057962 100644 --- a/extra/start-here.py +++ b/extra/start-here.py @@ -85,8 +85,8 @@ class StinkyPinkySession(ip.HtmlSession): self.log(packet.firstframe, packet.text, True) -# execution harness if __name__ == '__main__': + ''' an execution harness ''' if len(sys.argv) > 1: sessions = {} dp = ip.Dispatch(*sys.argv[1:]) @@ -99,3 +99,6 @@ if __name__ == '__main__': sessions[fhash].handle(is_srv, frame, gs, dp.last) for sess in sessions.itervalues(): sess.done() +else: + ''' an import harness ''' + session = StinkyPinkySession