Skip to content

Commit

Permalink
Fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen committed Sep 5, 2023
1 parent 57c2d8c commit fb96403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/quacc/settings.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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",
)

Expand Down

0 comments on commit fb96403

Please sign in to comment.