summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_systems/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py
index 01f7bd62be..5575379b8b 100644
--- a/lib/spack/spack/build_systems/python.py
+++ b/lib/spack/spack/build_systems/python.py
@@ -173,7 +173,7 @@ class PythonExtension(spack.package_base.PackageBase):
# Make sure we are importing the installed modules,
# not the ones in the source directory
- python = inspect.getmodule(self).python.path
+ python = inspect.getmodule(self).python
for module in self.import_modules:
with test_part(
self,