bof_presentation/scripts/detex-languagetool.py
2022-09-20 18:17:35 +02:00

12 lines
316 B
Python
Executable File

#!/usr/bin/env python3
import os
import subprocess
import sys
dir_path = os.path.dirname(os.path.realpath(__file__))
subprocess.call('cat ' + sys.argv[-1] + ' | '
+ os.path.join(dir_path, 'detex.py') + ' | '
+ 'languagetool ' + ' '.join(sys.argv[1:-1]),
shell=True)