The workspace root is implicitly an import root
This commit is contained in:
parent
2f7295ba9e
commit
69fb81e317
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ def _zapp_impl(ctx):
|
|||
# Find the list of directories to add to sys
|
||||
import_roots = [
|
||||
r for r in ctx.attr.src[PyInfo].imports.to_list()
|
||||
] + [
|
||||
# The workspace root is implicitly an import root
|
||||
ctx.workspace_name
|
||||
]
|
||||
|
||||
for r0 in import_roots:
|
||||
|
|
Loading…
Reference in a new issue