diff options
author | Devaev Maxim <[email protected]> | 2020-10-03 06:43:17 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-10-03 06:43:23 +0300 |
commit | 8b2a2eb7312c59ed5e543fd7b5cc91ae514e7333 (patch) | |
tree | d9bcebb5d96e52d62763dd8a132af70813662479 /kvmd/apps/otgmsd | |
parent | 9db6a4a6b415c34ea962376edbf1a615bb1b45bd (diff) |
using sysfs prefix
Diffstat (limited to 'kvmd/apps/otgmsd')
-rw-r--r-- | kvmd/apps/otgmsd/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/apps/otgmsd/__init__.py b/kvmd/apps/otgmsd/__init__.py index 9b7bd477..f504013d 100644 --- a/kvmd/apps/otgmsd/__init__.py +++ b/kvmd/apps/otgmsd/__init__.py @@ -34,13 +34,15 @@ from ...validators.basic import valid_bool from ...validators.basic import valid_int_f0 from ...validators.os import valid_abs_file +from ... import env + from .. import init # ===== def _make_param_path(gadget: str, instance: int, param: str) -> str: return os.path.join( - "/sys/kernel/config/usb_gadget", + f"{env.SYSFS_PREFIX}/sys/kernel/config/usb_gadget", gadget, f"functions/mass_storage.usb{instance}/lun.0", param, |