1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 15:39:43 +00:00

Fixing src path in dotfiles to allow different dotpaths than the current one

This commit is contained in:
Davide Laezza
2019-04-23 12:55:23 +02:00
parent 2d66e1847e
commit 649575116b
4 changed files with 114 additions and 9 deletions

View File

@@ -148,7 +148,6 @@ def load_options(confpath, profile):
o = Options(args=args)
o.profile = profile
o.dry = False
o.profile = profile
o.safe = True
o.install_diff = True
o.import_link = LinkTypes.NOLINK
@@ -221,9 +220,9 @@ def create_yaml_keyval(pairs, parent_dir=None, top_key=None):
return file_name
def populate_fake_config(config, dotfiles=(), profiles=(), actions=(),
trans=(), trans_write=(), variables=(),
dynvariables=()):
def populate_fake_config(config, dotfiles={}, profiles={}, actions={},
trans={}, trans_write={}, variables={},
dynvariables={}):
"""Adds some juicy content to config files"""
is_path = isinstance(config, str)
if is_path: