[lit] Inject the lit specific config object as 'lit_config' when loading config files.

- Injecting it as 'lit' is gross, since that name should be used to refer to
   the actual package. For now both are available so it is possibly to cleanup
   test config files incrementally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2013-08-09 00:37:05 +00:00
parent 6c749c5fbc
commit 38649827c3

View File

@ -75,6 +75,7 @@ class TestingConfig:
cfg_globals = dict(globals())
cfg_globals['config'] = self
cfg_globals['lit'] = litConfig
cfg_globals['lit_config'] = litConfig
cfg_globals['__file__'] = path
try:
if PY2: