Skip to content

Commit deba923

Browse files
authored
Prefer using the files_in_path helper. NFC. (#14878)
1 parent 0fe9b0b commit deba923

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/system_libs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,9 @@ class libsockets(MuslInternalLibrary, MTLibrary):
893893
cflags = ['-Os', '-fno-builtin']
894894

895895
def get_files(self):
896-
network_dir = shared.path_from_root('system', 'lib', 'libc', 'musl', 'src', 'network')
897-
return [os.path.join(network_dir, x) for x in LIBC_SOCKETS]
896+
return files_in_path(
897+
path_components=['system', 'lib', 'libc', 'musl', 'src', 'network'],
898+
filenames=LIBC_SOCKETS)
898899

899900
def can_use(self):
900901
return super(libsockets, self).can_use() and not settings.PROXY_POSIX_SOCKETS

0 commit comments

Comments
 (0)