[cli] Fix download dir check

pull/2/head
Daniel Van Der Maden 5 years ago
parent 14bce009e3
commit a33d715d62
  1. 2
      pyhmy/cli.py

@ -323,7 +323,7 @@ def download(path="./bin/hmy", replace=True, verbose=True):
"""
path = os.path.realpath(path)
parent_dir = Path(path).parent
assert os.path.isfile(path), f"path `{path}` must specify a file."
assert not os.path.isdir(path), f"path `{path}` must specify a file, not a directory."
if not os.path.exists(path) or replace:
old_cwd = os.getcwd()

Loading…
Cancel
Save