From cf8ab291294e2e41a7cf92ae5a2e170a3b1d7aa4 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 11 Dec 2018 05:24:59 +0200 Subject: [PATCH] local: don't use relpath in debug msgs Signed-off-by: Ruslan Kuprieiev --- dvc/remote/local.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/dvc/remote/local.py b/dvc/remote/local.py index 7d5845530..f30f1bff7 100644 --- a/dvc/remote/local.py +++ b/dvc/remote/local.py @@ -133,11 +133,7 @@ class RemoteLOCAL(RemoteBase): if os.path.getsize(cache) == 0: open(path, 'w+').close() - msg = "Created empty file: {} -> {}".format( - os.path.relpath(cache), - os.path.relpath(path), - ) - + msg = "Created empty file: {} -> {}".format(cache, path) Logger.debug(msg) return @@ -151,10 +147,7 @@ class RemoteLOCAL(RemoteBase): msg = "Created {}'{}': {} -> {}".format( 'protected ' if self.protected else '', - self.cache_types[0], - os.path.relpath(cache), - os.path.relpath(path) - ) + self.cache_types[0], cache, path) Logger.debug(msg) return