(tar_from_header): reword to avoid a cast to unsigned char.
[midnight-commander.git] / maint / utils / sync-transifex / hints-to-transifex.py
blob6ed5fb270b3c6a8d7acbf0f3623db30a8f0ee9bc
1 #!/usr/bin/env python3
3 import subprocess
4 from pathlib import Path
6 from translation_utils import create_po4a_config, init_sync_dir
8 RESOURCE_NAME = "mc.hint"
10 SCRIPT_DIR = Path(__file__).parent
11 SOURCE_DIR = SCRIPT_DIR.parent.parent.parent
13 sync_dir = init_sync_dir(SCRIPT_DIR, RESOURCE_NAME)
15 po4a_config = create_po4a_config(sync_dir, SCRIPT_DIR, SOURCE_DIR, RESOURCE_NAME)
17 subprocess.run(("po4a", str(po4a_config)), cwd=SCRIPT_DIR, check=True)
19 subprocess.run(("tx", "push", "--source"), cwd=sync_dir, check=True)