Closed WasabiFan closed 8 years ago
If the answer is yes, I can fix it in my PR with the other changes.
hmm, shutil.copytree handles that for me.
Ok, the problem is that clean_arena
fails when there is nothing to clean. I think wrapping this line into a try/except
block should help.
Oh wow, I completely missed the fact that it was running the clean script and not the populate one!
I'll make that change in my PR.
Even better, rmtree
has ignore_errors
flag: https://docs.python.org/2/library/shutil.html#shutil.rmtree
I'm getting the following error when running the
populateclean script:... So the script doesn't actually ever create the
arena
directory, and it looks like the tree copy function isn't willing to create it for us. Is the proper solution to just add amkdir
-equivalent before the copy?