Ensure tarball directory is created before trying to download to it

This commit is contained in:
Michael Hansen
2020-10-19 22:04:47 -07:00
parent 0a54e40c8d
commit 8fdfe170fc

View File

@@ -60,6 +60,8 @@ def fetch_python(snekdir, version):
return
tb_dir = os.path.join(snekdir, 'tarballs')
if not os.path.exists(tb_dir):
os.makedirs(tb_dir)
tarfile = os.path.join(tb_dir, tarball)
if not os.path.exists(tarfile):
if version == '1.6':