From 69fb81e3176a915d7bfddd16cdd8b9a1a81c6d4d Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Thu, 12 Aug 2021 14:11:48 -0600 Subject: [PATCH] The workspace root is implicitly an import root --- zapp/zapp.bzl | 3 +++ 1 file changed, 3 insertions(+) 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: