Update analyzer.py

This commit is contained in:
Richard Bronkhorst 2023-06-14 21:13:11 +02:00
parent f079403535
commit 3196b80e2a

View File

@ -42,6 +42,7 @@ class Analyzer:
if depth < 1: return None if depth < 1: return None
if type(orig) == System: if type(orig) == System:
orig = set([SearchNode(orig,None)]) orig = set([SearchNode(orig,None)])
print(orig)
result = [n for n in orig if n.system==to] result = [n for n in orig if n.system==to]
if len(result) > 0: if len(result) > 0:
return result[0].path() return result[0].path()