mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 06:03:21 +08:00
@ -11,6 +11,7 @@ from configparser import ConfigParser
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from inspect import cleandoc
|
from inspect import cleandoc
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
from os.path import basename
|
||||||
from pathlib import Path, PurePath
|
from pathlib import Path, PurePath
|
||||||
|
|
||||||
DEFAULT_ALLSEP = " "
|
DEFAULT_ALLSEP = " "
|
||||||
@ -631,9 +632,7 @@ def update_dependencies(targets, version, packages):
|
|||||||
if str(pkg) == "all":
|
if str(pkg) == "all":
|
||||||
continue
|
continue
|
||||||
print(pkg)
|
print(pkg)
|
||||||
package_name = str(pkg).split("/", maxsplit=1)[-1]
|
package_name = basename(pkg)
|
||||||
# Windows uses backslashes
|
|
||||||
package_name = str(pkg).split("\\", maxsplit=1)[-1]
|
|
||||||
print(package_name)
|
print(package_name)
|
||||||
|
|
||||||
update_files(
|
update_files(
|
||||||
|
Reference in New Issue
Block a user