1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 20:14:16 +00:00

first attempt to update dotfiles

This commit is contained in:
deadc0de6
2018-01-13 15:47:57 +01:00
parent a4c13eb37c
commit 8add242882
3 changed files with 48 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ class Cfg:
# make sure we have an absolute dotpath
self.curdotpath = self.configs[self.key_dotpath]
self.configs[self.key_dotpath] = self._get_abs_dotpath(self.curdotpath)
self.configs[self.key_dotpath] = self.get_abs_dotpath(self.curdotpath)
return True
def _get_included_dotfiles(self, profile):
@@ -158,7 +158,7 @@ class Cfg:
included.extend(self.prodots[other])
return included
def _get_abs_dotpath(self, dotpath):
def get_abs_dotpath(self, dotpath):
""" transform dotpath to an absolute path """
if not dotpath.startswith(os.sep):
absconf = os.path.join(os.path.dirname(