1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 01:55:37 +00:00

handle symlink of templates through working directory

This commit is contained in:
deadc0de6
2018-09-02 14:35:14 +02:00
parent 401c9a2d0c
commit 37d676d22d
7 changed files with 135 additions and 32 deletions

View File

@@ -98,11 +98,13 @@ def create_fake_config(directory, configname='config.yaml',
dotpath='dotfiles', backup=True, create=True):
'''Create a fake config file'''
path = os.path.join(directory, configname)
workdir = os.path.join(directory, 'workdir')
with open(path, 'w') as f:
f.write('config:\n')
f.write(' backup: {}\n'.format(str(backup)))
f.write(' create: {}\n'.format(str(create)))
f.write(' dotpath: {}\n'.format(dotpath))
f.write(' workdir: {}\n'.format(workdir))
f.write('dotfiles:\n')
f.write('profiles:\n')
f.write('actions:\n')