MCPcopy
hub / github.com/deadc0de6/dotdrop / resolve_dotfile_dst

Method resolve_dotfile_dst

dotdrop/cfg_yaml.py:339–351  ·  view source on GitHub ↗

resolve dotfile dst path

(self, dst, templater=None)

Source from the content-addressed store, hash-verified

337 return newsrc
338
339 def resolve_dotfile_dst(self, dst, templater=None):
340 """resolve dotfile dst path"""
341 newdst = ''
342 if dst:
343 new = dst
344 if templater:
345 new = templater.generate_string(dst)
346 if new != dst and self._debug:
347 msg = f'dotfile dst: \"{dst}\" -> \"{new}\"'
348 self._dbg(msg)
349 dst = new
350 newdst = self._norm_path(dst)
351 return newdst
352
353 def add_dotfile_to_profile(self, dotfile_key, profile_key):
354 """

Callers 1

Calls 3

_dbgMethod · 0.95
_norm_pathMethod · 0.95
generate_stringMethod · 0.80

Tested by

no test coverage detected