From fb96403f38662c2d10521301c524ac6304e6a9da Mon Sep 17 00:00:00 2001 From: Andrew Rosen Date: Tue, 5 Sep 2023 01:46:03 -0700 Subject: [PATCH] Fix settings --- src/quacc/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/quacc/settings.py b/src/quacc/settings.py index c9f4515d83..e6a17d497c 100644 --- a/src/quacc/settings.py +++ b/src/quacc/settings.py @@ -1,7 +1,7 @@ """Settings for quacc""" from __future__ import annotations -import importlib +from importlib import import_module, resources from pathlib import Path from shutil import which from typing import List, Optional, Union @@ -13,7 +13,7 @@ installed_engine = "local" for wflow_engine in {"covalent", "parsl", "redun", "jobflow"}: try: - importlib.import_module(wflow_engine) + import_module(wflow_engine) installed_engine = wflow_engine except ImportError: continue @@ -172,7 +172,7 @@ class QuaccSettings(BaseSettings): description="If True, warnings will be raised when INCAR parameters are changed.", ) VASP_PRESET_DIR: Union[str, Path] = Field( - importlib.resources.files(vasp_defaults), + resources.files(vasp_defaults), description="Path to the VASP preset directory", )