Hey folks, I'm (trying to) write tests for my plug...
# plugins
c
Hey folks, I'm (trying to) write tests for my plugin. I'm using the RuleRunner approach just to get some tests for whether anything works at all. I'm hitting a problem with a task to build a PEX, seems it can't find a Python interpreter because the search path is empty.
Copy code
E           pants.engine.process.BinaryNotFoundError: Was not able to locate a Python interpreter to execute rule code.
E           Please ensure that Python is available in one of the locations identified by `[python-bootstrap] search_path`, which currently expands to:
E             []
I feel like I've overlooked something obvious, can someone help me out?
f
Look for
env_inherit
to see how to get
PATH
passed in.
Which would then help Pants find Python
c
neat, that works, thanks!
❤️ 1