forked from insertinterestingnamehere/numerical_computing
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakevol.py
More file actions
Latest commit
27 lines (20 loc) · 738 Bytes
/
Copy pathmakevol.py
File metadata and controls
27 lines (20 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
importmake_util
defmain(args):
forfinmake_util.run_seq:
ret=f(args.vol)
ifret.returncode!=0:
break
ifret.returncode==0:
print"Success!"
else:
#copy template.log to copydest
print"{} could not be generated".format(args.vol)
if__name__=="__main__":
importargparse
descr="""
Makelab - An automated lab compiler.
This will compile a selected volume of labs with references and output a pdf file in the main directory.
"""
parser=argparse.ArgumentParser(description=descr)
parser.add_argument('vol', action='store', help="Volume to generate with references")
main(parser.parse_args())