linux_intro/scripts/detex-languagetool.py

12 lines
316 B
Python
Raw Permalink Normal View History

2022-10-03 18:38:51 +02:00
#!/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)