diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index e16b7dfe3197d..5e864850ac1a2 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -371,6 +371,7 @@ def delete_module_cache(path): # Some steps required to initialize the tests dynamically link with python.dll # and need to know the location of the Python libraries. This ensures that we # use the same version of Python that was used to build lldb to run our tests. +config.environment["PYTHONHOME"] = config.python_root_dir config.environment["PATH"] = os.path.pathsep.join( (config.python_root_dir, config.environment.get("PATH", "")) )