def atests(interpreter, *arguments): if interpreter == 'standalone': interpreter = jar() try: interpreter = InterpreterFactory(interpreter) except ValueError as err: sys.exit(err) outputdir, tempdir = _get_directories(interpreter) arguments = list(_get_arguments(interpreter, outputdir)) + list(arguments) return _run(arguments, tempdir, interpreter.classpath)
def atests(interpreter_path, *params): if interpreter_path == 'standalone': interpreter_path = jar() if interpreter_path.endswith('.jar'): return exec_standalone(interpreter_path, *params) return exec_interpreter(interpreter_path, *params)
def atests(interpreter_path, *params): if interpreter_path == 'standalone': interpreter_path = jar() if '.jar' in interpreter_path: return exec_standalone(interpreter_path, *params) return exec_interpreter(interpreter_path, *params)