Commit 5eaf74ab by Neo Chien Committed by Tianqi Chen

[TEST] Not assuming HOME in tvm/download.py (#3803)

* Not assuming HOME in tvm/download.py

* Trigger notification
parent 137bf5f4
......@@ -119,7 +119,10 @@ def download(url, path, overwrite=False, size_compare=False, verbose=1, retries=
.format(repr(err), retries, 's' if retries > 1 else ''))
TEST_DATA_ROOT_PATH = os.path.join(os.path.expanduser('~'), '.tvm_test_data')
if "TEST_DATA_ROOT_PATH" in os.environ:
TEST_DATA_ROOT_PATH = os.environ.get("TEST_DATA_ROOT_PATH")
else:
TEST_DATA_ROOT_PATH = os.path.join(os.path.expanduser('~'), '.tvm_test_data')
os.makedirs(TEST_DATA_ROOT_PATH, exist_ok=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment