We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff80ce commit b1b62d6Copy full SHA for b1b62d6
tools/net/ynl/pyynl/ethtool.py
@@ -11,6 +11,7 @@
11
12
sys.path.append(pathlib.Path(__file__).resolve().parent.as_posix())
13
from lib import YnlFamily
14
+from cli import schema_dir, spec_dir
15
16
def args_to_req(ynl, op_name, args, req):
17
"""
@@ -156,10 +157,8 @@ def main():
156
157
args = parser.parse_args()
158
159
script_abs_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
- spec = os.path.join(script_abs_dir,
160
- '../../../Documentation/netlink/specs/ethtool.yaml')
161
- schema = os.path.join(script_abs_dir,
162
- '../../../Documentation/netlink/genetlink-legacy.yaml')
+ spec = os.path.join(spec_dir(), 'ethtool.yaml')
+ schema = os.path.join(schema_dir(), 'genetlink-legacy.yaml')
163
164
ynl = YnlFamily(spec, schema)
165
0 commit comments