use it's env.d keys as a blacklist to make env.d override the calling
environment. (trunk r8785)
svn path=/main/branches/2.1.2/; revision=8786
backupenv_whitelist = settings._environ_whitelist
backupenv = settings.configdict["backupenv"]
+ env_d = settings.configdict["env.d"]
for k, v in os.environ.iteritems():
if k in backupenv_whitelist:
continue
- if v == backupenv.get(k):
- del backupenv[k]
+ if k in env_d or \
+ v == backupenv.get(k):
+ backupenv.pop(k, None)
settings.regenerate()
settings.lock()
settings.validate()