Closed astrobokonon closed 4 years ago
Could just hack it in to check just before plt.savefig() in the relevant plot functions, but that'd miss the 'nows' and 'raws' directories; there should be a check before any of that starts, so it'd be more towards the surface.
I hacked this in to dockEnvFile for NightWatch some time ago, but it could also be done in the dockerfile that makes the container. Closing this since it's not super relevant anymore.
Right now I have to remember to pre-make the directories, which is a little annoying. Ultimately the best way to do it is to allow them to remake the directories on-the-fly (great for local testing and debugging!) but keep the directories being made in the dockerfiles as well (great for bind mounting!).