Skip to content

Commit

Permalink
Faster checking of workflow engine in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Oct 30, 2023
1 parent afb7f6e commit a80cc92
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/quacc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import annotations

import os
from importlib import import_module, resources
import importlib.util
from pathlib import Path
from shutil import which
from typing import TYPE_CHECKING, Literal, Optional, Union
Expand All @@ -25,12 +25,9 @@
"redun",
"jobflow",
]:
try:
import_module(wflow_engine)
if importlib.util.find_spec(wflow_engine):
installed_engine = wflow_engine
break
except ImportError:
continue

_DEFAULT_CONFIG_FILE_PATH = Path("~", ".quacc.yaml").expanduser().resolve()

Expand Down

0 comments on commit a80cc92

Please sign in to comment.