diff options
author | aqua <aqua@iserlohn-fortress.net> | 2024-08-18 18:08:25 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2024-08-18 18:08:25 +0300 |
commit | 0d352b6ff19ea87980c4248554d6665f98908338 (patch) | |
tree | 3d579e7151f79941f1b1a76d2c0ed2f22d6ef49e /tools/interface_generator/bin/interface_generator.py | |
parent | Moved interface_generator script to bin (diff) | |
download | kernel-0d352b6ff19ea87980c4248554d6665f98908338.tar.xz |
Run python tests using pytest
Diffstat (limited to 'tools/interface_generator/bin/interface_generator.py')
-rwxr-xr-x | tools/interface_generator/bin/interface_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/interface_generator/bin/interface_generator.py b/tools/interface_generator/bin/interface_generator.py index 90d03ba..04553e3 100755 --- a/tools/interface_generator/bin/interface_generator.py +++ b/tools/interface_generator/bin/interface_generator.py @@ -9,7 +9,7 @@ from pathlib import Path import sys from mako.lookup import TemplateLookup from interface_definition import parse as parse_interface -from templates import get_templates +from templates import get_templates, get_templates_dir PROG = { "name": "interface_generator", @@ -51,7 +51,7 @@ def main(): "-t", "--templates", type=Path, - default=Path(sys.argv[0]).parent / "templates", + default=get_templates_dir(), help="templates location", ) parser.add_argument( |