Merge pull request #20590 from Chocobo1/py

GHA CI: check python scripts
This commit is contained in:
Chocobo1 2024-03-25 13:42:09 +08:00 committed by GitHub
commit f2d6129db3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 124 additions and 117 deletions

View file

@ -7,9 +7,11 @@ import shutil
import sys
from typing import List
def isNotStub(path: str) -> bool:
return (os.path.getsize(path) >= (10 * 1024))
def main() -> int:
parser = argparse.ArgumentParser(description='Gather valid Qt translations for NSIS packaging.')
parser.add_argument("qt_translations_folder", help="Qt's translations folder")
@ -27,5 +29,6 @@ def main() -> int:
return 0
if __name__ == '__main__':
sys.exit(main())