From ddf24d4041cdeab7ee891d0eb7be330ec1b05c82 Mon Sep 17 00:00:00 2001 From: Bryce Gattis Date: Tue, 5 Mar 2024 23:32:20 -0600 Subject: [PATCH] Add new information about accessible package attributes and environment variables Signed-off-by: Bryce Gattis --- docs/source/package_definition.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/package_definition.rst b/docs/source/package_definition.rst index 8223ccdbf..ede0c01a5 100644 --- a/docs/source/package_definition.rst +++ b/docs/source/package_definition.rst @@ -113,6 +113,12 @@ implicit :attr:`this` object: Do not reference other early bound or late bound attributes in your early bound function. An error will be raised if you do. +.. warning:: + Certain package attributes cannot be accessed inside of an early bound function such as this.root. + + Additionally, :ref: `build environment variables ` cannot be accessed inside + of early bound functions. + Early binding functions are a convenience. You can always use an arbitrary function instead, like so: .. code-block:: python