not == to !=
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
parent
b14f172a61
commit
56c947722e
@ -50,7 +50,7 @@ def find_python_in_prefix(spec: "spack.spec.Spec", prefix: Optional[str] = None)
|
|||||||
Executable: the Python command
|
Executable: the Python command
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not spec.name == "python":
|
if spec.name != "python":
|
||||||
raise ValueError("find_python_in_prefix() only works on Python installations.")
|
raise ValueError("find_python_in_prefix() only works on Python installations.")
|
||||||
|
|
||||||
prefix = Prefix(prefix or spec.prefix)
|
prefix = Prefix(prefix or spec.prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user