diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/detection/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/detection/test.py b/lib/spack/spack/detection/test.py index a9a0311520..657188a38c 100644 --- a/lib/spack/spack/detection/test.py +++ b/lib/spack/spack/detection/test.py @@ -9,8 +9,6 @@ import pathlib import tempfile from typing import Any, Deque, Dict, Generator, List, NamedTuple, Tuple -import jinja2 - from llnl.util import filesystem import spack.repo @@ -85,6 +83,8 @@ class Runner: self.tmpdir.cleanup() def _create_executable_scripts(self, mock_executables: MockExecutables) -> List[pathlib.Path]: + import jinja2 + relative_paths = mock_executables.executables script = mock_executables.script script_template = jinja2.Template("#!/bin/bash\n{{ script }}\n") |