Skip to content

Commit b868ecd

Browse files
committed
Use lazy imports to reduce unnecessary deps
1 parent dc9aa8a commit b868ecd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qiling/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
from functools import partial
12-
import importlib, os, pefile, yaml
12+
import importlib, os
1313

1414
from configparser import ConfigParser
1515
from typing import Any, Mapping, Optional, Tuple, Type, Union
@@ -382,6 +382,8 @@ def profile_setup(ql, ostype: QL_OS, filename: Optional[str]):
382382

383383
# mcu uses a yaml-based config
384384
if ostype == QL_OS.MCU:
385+
import yaml
386+
385387
if filename:
386388
with open(filename) as f:
387389
config = yaml.load(f, Loader=yaml.Loader)

0 commit comments

Comments
 (0)