File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 66from apysc ._console .loggers import get_info_logger as _get_info_logger
77_logger = _get_info_logger ()
88_logger .info ("apysc packages importing has been started." )
9- _SKIP_MATERIAL_ICONS_IMPORTING : bool = bool (int (_os .environ .get ("APYSC_SKIP_MATERIAL_ICONS" , False )))
9+ _skip_material_icons_importing_str : str = _os .environ .get ("APYSC_SKIP_MATERIAL_ICONS" , "" )
10+ if _skip_material_icons_importing_str == "" :
11+ _skip_material_icons_importing_str = "0"
12+ try :
13+ _skip_material_icons_importing : bool = bool (int (_skip_material_icons_importing_str ))
14+ except ValueError :
15+ _skip_material_icons_importing = False
1016_imported_modules_rough_count : int = 0
1117
1218from apysc ._type .int import Int
154160from apysc ._color .colorless import COLORLESS
155161_imported_modules_rough_count += 50
156162
157- if not _SKIP_MATERIAL_ICONS_IMPORTING :
163+ if not _skip_material_icons_importing :
158164 from apysc ._material_design .icon .material_10k_icon import Material10KIcon
159165 from apysc ._material_design .icon .material_1k_icon import Material1KIcon
160166 from apysc ._material_design .icon .material_1k_plus_icon import Material1KPlusIcon
You can’t perform that action at this time.
0 commit comments