|
@@ -56,7 +56,9 @@ class all_functions(object):
|
56
|
56
|
if self.__devices__ is None:
|
57
|
57
|
self.__devices__ = []
|
58
|
58
|
for name, obj in inspect.getmembers(self):
|
59
|
|
- if obj.__class__.__module__.split('.')[0] == 'function':
|
|
59
|
+ if obj.__class__.__module__ == "devices":
|
|
60
|
+ self.__devices__.append(obj)
|
|
61
|
+ elif obj.__class__.__module__.split('.')[0] == 'function':
|
60
|
62
|
for devicename, device in inspect.getmembers(obj):
|
61
|
63
|
if device.__class__.__module__ == "devices":
|
62
|
64
|
self.__devices__.append(device)
|