app-validator/jsmain.py

11 строки
255 B
Python

import sys
import os
import validator.testcases.scripting
path = sys.argv[1]
script = open(path).read()
validator.testcases.scripting.test_js_file(None,
path,
script)