Change point at which yaml module is loaded (#3999)

This commit is contained in:
Oliver 2022-11-28 15:21:27 +11:00 committed by GitHub
parent aae0d3108e
commit ede2b4e787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,6 @@ import shutil
import string
from pathlib import Path
import yaml
logger = logging.getLogger('inventree')
@ -61,6 +59,8 @@ def get_config_file(create=True) -> Path:
def load_config_data() -> map:
"""Load configuration data from the config file."""
import yaml
cfg_file = get_config_file()
with open(cfg_file, 'r') as cfg: