From e45993a0b7742880642015f2ebb0a7e54ec6265b Mon Sep 17 00:00:00 2001 From: mayenjoy Date: Thu, 9 Apr 2015 11:10:29 +0800 Subject: [PATCH] Update main.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改windows下进程派生错误。 --- src/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index c856d65..bc88034 100755 --- a/src/main.py +++ b/src/main.py @@ -70,5 +70,6 @@ def splitGenerator(self, lst, n): for i in xrange(0, len(lst), n): yield lst[i:i+n] -m = main('../data/ips.txt', '../data/ipsok.txt') -m.run() +if __name__ == '__main__': + m = main('../data/ips.txt', '../data/ipsok.txt') + m.run()