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 6
6
from apysc ._console .loggers import get_info_logger as _get_info_logger
7
7
_logger = _get_info_logger ()
8
8
_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
10
16
_imported_modules_rough_count : int = 0
11
17
12
18
from apysc ._type .int import Int
154
160
from apysc ._color .colorless import COLORLESS
155
161
_imported_modules_rough_count += 50
156
162
157
- if not _SKIP_MATERIAL_ICONS_IMPORTING :
163
+ if not _skip_material_icons_importing :
158
164
from apysc ._material_design .icon .material_10k_icon import Material10KIcon
159
165
from apysc ._material_design .icon .material_1k_icon import Material1KIcon
160
166
from apysc ._material_design .icon .material_1k_plus_icon import Material1KPlusIcon
You can’t perform that action at this time.
0 commit comments