summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-08-10 10:00:33 +0200
committerGitHub <noreply@github.com>2022-08-10 10:00:33 +0200
commit857a798aedb852e8d13ffed2e0065cdff825598b (patch)
tree85e2994e8553f44b4e97dedbf900909fe4e51c60 /lib
parent03a91df81a7a7f4f8436d81025cfe74be9755e19 (diff)
downloadspack-857a798aedb852e8d13ffed2e0065cdff825598b.tar.gz
spack-857a798aedb852e8d13ffed2e0065cdff825598b.tar.bz2
spack-857a798aedb852e8d13ffed2e0065cdff825598b.tar.xz
spack-857a798aedb852e8d13ffed2e0065cdff825598b.zip
modules: add missing Python imports (#32012)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/modules/common.py3
-rw-r--r--lib/spack/spack/modules/lmod.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/modules/common.py b/lib/spack/spack/modules/common.py
index b9f2dce099..eaf79f6d04 100644
--- a/lib/spack/spack/modules/common.py
+++ b/lib/spack/spack/modules/common.py
@@ -44,9 +44,12 @@ import spack.build_environment
import spack.config
import spack.environment
import spack.error
+import spack.modules.common
import spack.paths
import spack.projections as proj
+import spack.repo
import spack.schema.environment
+import spack.store
import spack.tengine as tengine
import spack.util.environment
import spack.util.file_permissions as fp
diff --git a/lib/spack/spack/modules/lmod.py b/lib/spack/spack/modules/lmod.py
index 54add9563d..bb288336ea 100644
--- a/lib/spack/spack/modules/lmod.py
+++ b/lib/spack/spack/modules/lmod.py
@@ -17,6 +17,7 @@ import spack.error
import spack.repo
import spack.spec
import spack.tengine as tengine
+import spack.util.environment
from .common import BaseConfiguration, BaseContext, BaseFileLayout, BaseModuleFileWriter