From c548bcc9efeca4e3f4ad7b0ff9c40b9f865ceb8a Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:30:19 -0800 Subject: [PATCH] Environment: remove self import (#48056) --- lib/spack/spack/environment/environment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py index 9a3361c7347..2bbae6a6541 100644 --- a/lib/spack/spack/environment/environment.py +++ b/lib/spack/spack/environment/environment.py @@ -27,7 +27,6 @@ import spack.concretize import spack.config import spack.deptypes as dt -import spack.environment import spack.error import spack.filesystem_view as fsv import spack.hash_types as ht @@ -163,7 +162,7 @@ def installed_specs(): Returns the specs of packages installed in the active environment or None if no packages are installed. """ - env = spack.environment.active_environment() + env = active_environment() hashes = env.all_hashes() if env else None return spack.store.STORE.db.query(hashes=hashes)