[FRONTEND] Now using exist_ok=True when creating cache directories (#288)

This commit is contained in:
Philippe Tillet
2021-09-18 23:44:21 -07:00
committed by GitHub
parent 6e5b0b4301
commit a12827848d
3 changed files with 8 additions and 7 deletions

View File

@@ -709,7 +709,7 @@ class JITFunction:
return
# create cache directory
if not os.path.exists(cache_dir):
os.makedirs(cache_dir)
os.makedirs(cache_dir, exist_ok=True)
# create md5 hash of src
md5 = hashlib.md5()
md5.update(self.src.encode('utf-8'))