diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index 7ab9749f6266d..dcff8687fb4ca 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -353,6 +353,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", "")) )