OILS / opy / misc / ccompile.py View on Github | oilshell.org

18 lines, 8 significant
1#!/usr/bin/env python2
2"""
3ccompile.py - Compile with builtin compile() function, which uses compile.c.
4"""
5
6import sys
7import stdlib_compile
8
9
10def main(argv):
11 in_path = argv[1]
12 out_path = argv[2]
13
14 stdlib_compile.compileAndWrite(in_path, out_path, compile)
15
16
17if __name__ == '__main__':
18 main(sys.argv)