Use importlib.metadata instead of importlib_metadata
The importlib.metadata library is part of the Python standard library
since Python 3.8.
Change-Id: Iecf1d469caaa777c5b253eb0e44dc00692197ef7
(cherry picked from commit 8b465eae49
)
This commit is contained in:
parent
a44f06365a
commit
16a993be68
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
import glob
|
import glob
|
||||||
import importlib_metadata
|
from importlib.metadata import Distribution
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
@ -68,7 +68,7 @@ def _get_base_path():
|
|||||||
if override:
|
if override:
|
||||||
return os.path.join(override)
|
return os.path.join(override)
|
||||||
|
|
||||||
kayobe_dist = list(importlib_metadata.Distribution.discover(name="kayobe"))
|
kayobe_dist = list(Distribution.discover(name="kayobe"))
|
||||||
if kayobe_dist:
|
if kayobe_dist:
|
||||||
direct_url = _get_direct_url(kayobe_dist[0])
|
direct_url = _get_direct_url(kayobe_dist[0])
|
||||||
if direct_url:
|
if direct_url:
|
||||||
|
Loading…
Reference in New Issue
Block a user