diff --git a/zapp/zapp.bzl b/zapp/zapp.bzl index 0403bd8..46b298b 100644 --- a/zapp/zapp.bzl +++ b/zapp/zapp.bzl @@ -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: