2021-04-13 10:45:05 +02:00
|
|
|
# Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
2021-04-14 10:22:02 +02:00
|
|
|
import glob
|
2020-11-22 06:30:59 +01:00
|
|
|
import os
|
|
|
|
import sys
|
2021-04-14 10:22:02 +02:00
|
|
|
|
|
|
|
import format
|
2020-11-22 06:30:59 +01:00
|
|
|
|
|
|
|
template_root = os.path.dirname(sys.argv[1])
|
|
|
|
template_files = glob.glob(os.path.join(template_root, "*", "*.ftl"), recursive=True)
|
|
|
|
|
|
|
|
if not format.check_files(template_files, fix=False):
|
|
|
|
sys.exit(1)
|