Onionr/onionr/etc/waitforsetvar.py

4 lines
107 B
Python
Raw Normal View History

2019-08-04 04:52:57 +00:00
def wait_for_set_var(obj, attribute):
while True:
if hasattr(obj, attribute):
break