Merge pull request #609 from efiop/master

dvc: cloud: cache_file_key: don't forget to assign to relpath
This commit is contained in:
Ruslan Kuprieiev
2018-04-03 21:32:40 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ Make your data science projects reproducible and shareable.
"""
import os
VERSION = '0.9.3'
VERSION = '0.9.4'
if os.getenv('APPVEYOR_REPO_TAG', '').lower() != 'true' and os.getenv('TRAVIS_TAG', '') == '':
# Dynamically update version
+1 -1
View File
@@ -75,7 +75,7 @@ class DataCloudBase(object):
def cache_file_key(self, fname):
""" Key of a file within the bucket """
relpath = os.path.relpath(fname, self._cloud_settings.cache.cache_dir)
relpath.replace('\\', '/')
relpath = relpath.replace('\\', '/')
return '{}/{}'.format(self.storage_prefix, relpath).strip('/')
@staticmethod