File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 9
9
with open (_filepath ) as f :
10
10
__version__ = json .loads (f .read ())['version' ]
11
11
12
- _current_path = _os .path .dirname (_os .path .abspath (__file__ ))
13
-
14
- _components = _dash .development .component_loader .load_components (
15
- _os .path .join (_current_path , 'metadata.json' ),
16
- 'dash_daq'
17
- )
18
-
19
- _this_module = _sys .modules [__name__ ]
12
+ from ._imports_ import * # noqa: F401, F403, E402
13
+ from ._imports_ import __all__ # noqa: E402
20
14
21
15
async_resources = [
22
16
'colorpicker' ,
70
64
_css_dist = []
71
65
72
66
73
- for _component in _components :
74
- setattr (_this_module , _component .__name__ , _component )
75
- setattr (_component , '_js_dist' , _js_dist )
76
- setattr (_component , '_css_dist' , _css_dist )
67
+ for _component in __all__ :
68
+ setattr (locals ()[_component ], '_js_dist' , _js_dist )
You can’t perform that action at this time.
0 commit comments