Skip to content

Commit

Permalink
Fix makedirs() condition in contrib. (apache#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalint13 authored and ajtulloch committed Apr 5, 2019
1 parent c1fad30 commit 349a6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/contrib/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def download(url, path, overwrite=False, size_compare=False, verbose=1, retries=
# Stateful start time
start_time = time.time()
dirpath = os.path.dirname(path)
if not os.path.isdir(dirpath):
if dirpath and not os.path.isdir(dirpath):
os.makedirs(dirpath)
random_uuid = str(uuid.uuid4())
tempfile = os.path.join(dirpath, random_uuid)
Expand Down

0 comments on commit 349a6dd

Please sign in to comment.