blob: 0275960709fd6bb2e16f011f776d3c3b97263a4c [file] [log] [blame]
#!/usr/bin/env python3
import platform
import subprocess
import sys
try:
from internal_tools_paths import checkstyle_path
except ImportError:
checkstyle_path = None
if __name__ == '__main__':
gcheckstyle_args = sys.argv[1:]
try:
sys.exit(subprocess.call([checkstyle_path] + gcheckstyle_args))
except OSError:
print('Checkstyle not found, skipping.')
sys.exit(0)