summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Environment.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-03-22 17:21:00 (GMT)
committerSteven Knight <knight@baldmt.com>2002-03-22 17:21:00 (GMT)
commit2b87cbae264462efe494aa7ee07841ffb7ebaa0d (patch)
tree012844c97585092e3af23aeac926ac2ba8c58712 /src/engine/SCons/Environment.py
parent8587b92b72c166857467b2f718560148a9549ad3 (diff)
downloadSCons-2b87cbae264462efe494aa7ee07841ffb7ebaa0d.zip
SCons-2b87cbae264462efe494aa7ee07841ffb7ebaa0d.tar.gz
SCons-2b87cbae264462efe494aa7ee07841ffb7ebaa0d.tar.bz2
Make env['FOO'] by shorthand for env.Dictionary()['FOO'] (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r--src/engine/SCons/Environment.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py
index d997d6f..65af179 100644
--- a/src/engine/SCons/Environment.py
+++ b/src/engine/SCons/Environment.py
@@ -227,6 +227,15 @@ class Environment:
dlist = dlist[0]
return dlist
+ def __setitem__(self, key, value):
+ self._dict[key] = value
+
+ def __getitem__(self, key):
+ return self._dict[key]
+
+ def __delitem__(self, key):
+ del self._dict[key]
+
def Command(self, target, source, action):
"""Builds the supplied target files from the supplied
source files using the supplied action. Action may