From 2cccdf9858bea4d1f914a0e29985f5f8ce6354cf Mon Sep 17 00:00:00 2001 From: Robert Ma Date: Mon, 14 Dec 2020 15:52:42 -0500 Subject: [PATCH] Only add importlib_metadata on Python<=3.8 --- tools/localpaths.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/localpaths.py b/tools/localpaths.py index a509a999db7d533..87eafccf4d23367 100644 --- a/tools/localpaths.py +++ b/tools/localpaths.py @@ -24,7 +24,8 @@ sys.path.insert(0, os.path.join(here, "third_party", "hyperframe")) sys.path.insert(0, os.path.join(here, "third_party", "certifi")) sys.path.insert(0, os.path.join(here, "third_party", "hyper")) -sys.path.insert(0, os.path.join(here, "third_party", "importlib_metadata")) +if sys.version_info < (3, 8): + sys.path.insert(0, os.path.join(here, "third_party", "importlib_metadata")) sys.path.insert(0, os.path.join(here, "webdriver")) sys.path.insert(0, os.path.join(here, "wptrunner"))