enough-analyst-54434
10/22/2021, 1:52 PMfrom core.test_utils import token
E ModuleNotFoundError: No module named 'core.test_utils'
Pants needs to know X
in the filesystem path X/core/test_utils.py
. Pants call X
a "source root". This is equivalent to a PYTHONPATH
entry for Python. The list of "source roots" Pants knows about can be found by running pants roots
. If X
is not in the list printed out, you need to teach Pants about X
as described here: https://www.pantsbuild.org/docs/source-roots#configuring-source-roots