forked from organicmaps/organicmaps-tmp
[python][generator] Added check mwm size.
This commit is contained in:
parent
28f285b575
commit
710e15e217
1 changed files with 13 additions and 0 deletions
13
tools/python/maps_generator/checks/check_size.py
Normal file
13
tools/python/maps_generator/checks/check_size.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
import os
|
||||
|
||||
from maps_generator.checks import check
|
||||
|
||||
|
||||
def get_size_check_set(old_path: str, new_path: str) -> check.CompareCheckSet:
|
||||
return check.build_check_set_for_files(
|
||||
"Size check",
|
||||
old_path,
|
||||
new_path,
|
||||
ext=".mwm",
|
||||
do=lambda path: os.path.getsize(path),
|
||||
)
|
Loading…
Add table
Reference in a new issue