示例#1
0
文件: factory.py 项目: vjkumran/dvc
 def existing_data_item_from_dvc_path(self, dvc_path):
     path = Path.from_dvc_path(dvc_path, self._git)
     return self.existing_data_item(path.relative)
示例#2
0
 def data_item_from_dvc_path(self, dvc_path, existing=True):
     path = Path.from_dvc_path(dvc_path, self._git)
     if existing:
         return self.existing_data_item(path.relative)
     else:
         return self.data_item(path.relative)