fix fingerprint script
This commit is contained in:
parent
92a8469284
commit
9a9e4ba45e
|
@ -1,9 +1,8 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# type: ignore
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
from tools.lib.route import Route
|
||||||
from tools.lib.logreader import MultiLogIterator
|
from tools.lib.logreader import MultiLogIterator
|
||||||
from xx.chffr.lib.route import Route # pylint: disable=import-error
|
|
||||||
|
|
||||||
|
|
||||||
def get_fingerprint(lr):
|
def get_fingerprint(lr):
|
||||||
|
@ -28,7 +27,6 @@ if __name__ == "__main__":
|
||||||
print("Usage: ./get_fingerprint_internal.py <route>")
|
print("Usage: ./get_fingerprint_internal.py <route>")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
route = sys.argv[1]
|
route = Route(sys.argv[1])
|
||||||
route = Route(route)
|
|
||||||
lr = MultiLogIterator(route.log_paths()[:5], wraparound=False)
|
lr = MultiLogIterator(route.log_paths()[:5], wraparound=False)
|
||||||
get_fingerprint(lr)
|
get_fingerprint(lr)
|
||||||
|
|
Loading…
Reference in a new issue