[infer][frontend] catch exception from directory already existing

master
Sam Blackshear 10 years ago
parent d8a2ce2417
commit 4e389cc601

@ -167,9 +167,10 @@ def remove_infer_out(infer_out):
def mkdir_if_not_exists(path):
if not os.path.exists(path):
try:
os.mkdir(path)
except OSError:
pass
def create_results_dir(results_dir):
mkdir_if_not_exists(results_dir)

Loading…
Cancel
Save