mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Change point at which yaml module is loaded (#3999)
This commit is contained in:
parent
aae0d3108e
commit
ede2b4e787
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user