From a0d364e78ad0ad5d10e30017829409d348f3c5f3 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 22 Oct 2019 23:21:22 +0300 Subject: [PATCH] version: fix warning --- dvc/command/version.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dvc/command/version.py b/dvc/command/version.py index 50758b2aa..078f1fdec 100644 --- a/dvc/command/version.py +++ b/dvc/command/version.py @@ -12,7 +12,7 @@ try: except ImportError: psutil = None -from dvc.utils import is_binary +from dvc.utils import is_binary, relpath from dvc.utils.compat import pathlib from dvc.command.base import CmdBaseNoRepo, append_doc_link from dvc.version import __version__ @@ -60,8 +60,9 @@ class CmdVersion(CmdBaseNoRepo): logger.warning( "Unable to detect supported link types, as cache " "directory '{}' doesn't exist. It is usually auto-created " - "by commands such as `dvc add/fetch/pull/run/import`, but " - "you could create it manually to enable this check." + "by commands such as `dvc add/fetch/pull/run/import`, " + "but you could create it manually to enable this " + "check.".format(relpath(repo.cache.local.cache_dir)) ) if psutil: