-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tempdir support #1122
tempdir support #1122
Conversation
This does not seem to be working as expected: (As an aside, the two failing Travis tests |
It now puts it in the temporary directory ( |
I also noticed that, contrary to its name, |
* make_output_directory() makes tempdir * rm old undocumented feature of symlinking latest_output in structure::set_output_directory * make temporary directory in tmpdir * more informative abort message
mp.make_output_directory()
now makes a temporary directory withmkdtemp
.So, you can do
sim.use_output_directory(mp.make_output_directory())
to work in a temporary directory.It would be nice to add a parameter to
use_output_directory
that automatically deletes the directory when the simulation destructor is called.