Add a PyMOL builder to SCons and generalize PYMOL_PATH setup.
[thesis.git] / src / figures / sim-hist / SConscript
1 from site_cons.site_init import link_wtk_graph
2
3
4 FIGURES = ['sim-hist']
5
6 # Get the passed in environment.
7 Import('env')
8
9 # TODO, autogen hist.hist and hist.note from hist.dat
10
11 wtk_graph = link_wtk_graph(env)
12
13 for fig in FIGURES:
14     asyfile = '%s.asy' % fig  # static .asy file
15     pyfig = fig.replace('-', '_')
16     data = '%s_data' % (pyfig)
17     asydata = []
18     if data in globals():     # generated data dependencies
19         asydata = globals()[data]
20     env.Asymptote([asyfile, wtk_graph] + asydata)
21
22 # Pass back the modified environment.
23 Return('env')