Skip to content

Commit 1783bd8

Browse files
committed
Restore presub_env behavior in Action
Signed-off-by: Mats Wichmann <[email protected]>
1 parent ebee0d9 commit 1783bd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SCons/Action.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,8 @@ def __str__(self) -> str:
12541254
try:
12551255
env = self.presub_env
12561256
except AttributeError:
1257-
import SCons.Defaults # pylint: disable=import-outside-toplevel
1257+
env = None
1258+
if env is None:
12581259
env = SCons.Defaults.DefaultEnvironment()
12591260
act = self._generate([], [], env, 1)
12601261
return str(act)

0 commit comments

Comments
 (0)