initial commit
This commit is contained in:
24
j2cfg/j2cfg-multi.py
Executable file
24
j2cfg/j2cfg-multi.py
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 2:
|
||||
raise ValueError('not enough arguments (min: 1)')
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
import j2cfg
|
||||
|
||||
r = j2cfg.J2cfg(strict=False)
|
||||
ret = 0
|
||||
for f in sys.argv[1:]:
|
||||
if not r.render_file(f, None):
|
||||
ret = 1
|
||||
|
||||
sys.exit(ret)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Reference in New Issue
Block a user