https://pantsbuild.org/ logo
#general
Title
# general
b

billowy-motherboard-58443

09/21/2020, 2:56 PM
when it is
["/", "/real-ns"]
I get the
E   ModuleNotFoundError: No module named 'real-ns'
h

hundreds-father-404

09/21/2020, 4:13 PM
Yes, I think it should be
["/"]
. It depends on how your Python imports work. If you have the code
path/to/ns/util/foo
, are you importing in your Python this:
Copy code
path.to.ns.util.foo
or this:
Copy code
ns.util.foo
If the former, then
"/"
is the correct source root. if the latter, then your source root should be “path/to”, so that it gets “stripped” off
6 Views