summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2019-12-13 15:25:01 (GMT)
committerMats Wichmann <mats@linux.com>2019-12-13 15:25:01 (GMT)
commitd960416fc4caa6e799812357fe91c3f3e11a9174 (patch)
tree90767382036fe90b50f1e5941bf0c1d38da583ff /src
parentc09ac3c715cb18dc419d12c5bf90adb3019bede0 (diff)
downloadSCons-d960416fc4caa6e799812357fe91c3f3e11a9174.zip
SCons-d960416fc4caa6e799812357fe91c3f3e11a9174.tar.gz
SCons-d960416fc4caa6e799812357fe91c3f3e11a9174.tar.bz2
Tweak DefaultEnvironment descriptions (ci skip)
Doc-only change to be more explicit about when the default construction environment is used, and what it means to call DefaultEnvironment() - only the first call instantiates it, later calls return the object. Fixes #2477 Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Defaults.xml16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/engine/SCons/Defaults.xml b/src/engine/SCons/Defaults.xml
index f215f5a..5002411 100644
--- a/src/engine/SCons/Defaults.xml
+++ b/src/engine/SCons/Defaults.xml
@@ -572,15 +572,21 @@ searching the repositories.
<scons_function name="DefaultEnvironment">
<arguments signature="global">
-([args])
+([**kwargs])
</arguments>
<summary>
<para>
-Creates and returns a default construction environment object.
-This construction environment is used internally by SCons
-in order to execute many of the global functions in this list,
-and to fetch source files transparently
+Creates and returns a default &consenv; object.
+The default &consenv; is used internally by SCons
+in order to execute many of the global functions in this list
+(i.e. those not called as methods of a specific
+&consenv;), and to fetch source files transparently
from source code management systems.
+The default environment is a singleton, so the keyword
+arguments affect it only on the first call, on subsequent
+calls the already-constructed object is returned.
+The default environment can be modified in the same way
+as any &consenv;.
</para>
</summary>
</scons_function>