Skip to content

Commit f60e341

Browse files
douglas-raillard-armmarcbonnici
authored andcommitted
target: Fix read_sysctl()
Add a leading "/" so the path is absolute.
1 parent 46219ac commit f60e341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devlib/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ async def read_sysctl(self, parameter):
11831183
"""
11841184
Returns the value of the given sysctl parameter as a string.
11851185
"""
1186-
path = self.path.join('proc', 'sys', *parameter.split('.'))
1186+
path = self.path.join('/', 'proc', 'sys', *parameter.split('.'))
11871187
try:
11881188
return await self.read_value.asyn(path)
11891189
except FileNotFoundError as e:

0 commit comments

Comments
 (0)