code: def copy_path(self, path):
          
          src = os.path.expandvars(os.path.expanduser(path))
          basename = os.path.basename(src)
          dest_path = os.path.expandvars(os.path.expanduser(
              os.path.join(self.curr_work_path, basename)))
          if os.path.isdir(dest_path):
              shutil.rmtree(dest_path)
          if os.path.isdir(src):
              try:
                  shutil.copytree(src, dest_path)
              except shutil.Error:
                  pass  # There are permissions errors to copy
          elif os.path.isfile(src):
              shutil.copy(src, dest_path)
          else:
              raise UserWarning(
                  "Just directory or file is supported to copy [%s]" % src)
          return os.path.relpath(dest_path, self.curr_work_path)
docs: :param paths list: List of paths to copy