We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4581953 commit b149e19Copy full SHA for b149e19
labscript_utils/unitconversions/__init__.py
@@ -26,14 +26,15 @@ class _All(object):
26
27
def __getitem__(self, ix):
28
if self.__all__ is None:
29
- self.__all__ = []
30
self._import_all()
31
return self.__all__[ix]
32
33
def _import_all(self):
34
"""imports all unit conversion classes in module within this subpackage into
35
this module's globals. This is used only for backward compatibility with unit
36
conversion classes that were not specified with a fully qualified name"""
+ if self.__all__ is None:
37
+ self.__all__ = []
38
for filename in os.listdir(os.path.split(__file__)[0]):
39
if filename.endswith('.py') and filename != '__init__.py':
40
module = filename[:-3]
0 commit comments