mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
tools: fix import sorter
This commit is contained in:
parent
bebca9d546
commit
915bf055a8
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
from shared.files import find_versioned_files, is_binary_file
|
||||
from shared.import_sorter import sort_imports
|
||||
from shared.paths import SHARED_SRC_DIR, SRC_DIR, TR1Paths, TR2Paths
|
||||
|
||||
|
@ -19,7 +20,7 @@ def main() -> None:
|
|||
else:
|
||||
paths = [
|
||||
path
|
||||
for path in find_versioned_files(root_dir)
|
||||
for path in find_versioned_files(SRC_DIR)
|
||||
if path.suffix in [".c", ".h"]
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue