Testing
This commit is contained in:
parent
96df21c047
commit
9d6c447ac9
9
main.py
9
main.py
@ -7,10 +7,12 @@ from pprint import pprint
|
||||
tmpips = [] #NOTE Need to reset this variable between runs
|
||||
ips = []
|
||||
ipdict = {}
|
||||
currValue = ""
|
||||
|
||||
class threadedLookup(threading.Thread):
|
||||
def run(self, ip):
|
||||
lookup(ip)
|
||||
def run(self):
|
||||
global currValue
|
||||
lookup(currValue)
|
||||
|
||||
def openFile(filename):
|
||||
try:
|
||||
@ -53,7 +55,8 @@ for x in tmpips:
|
||||
for value in ips:
|
||||
if "." in value:
|
||||
#lookup(value)
|
||||
lookupThread = threadedLookup(name = "lookup" + value, value)
|
||||
currValue = value
|
||||
lookupThread = threadedLookup(name = "lookup" + value)
|
||||
lookupThread.start()
|
||||
|
||||
#pprint(ipdict)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user