1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +00:00
This commit is contained in:
deadc0de6
2017-03-15 17:47:50 +01:00
parent d5b132f57c
commit 3bde81fa76

View File

@@ -102,7 +102,10 @@ def importer(opts, conf, paths):
key = 'd_%s' % (key)
else:
key = 'f_%s' % (key)
src = dst.lstrip(home).lstrip('.')
src = dst
if dst.startswith(home):
src = dst[len(home):]
src = src.lstrip('.' + os.sep)
dotfile = Dotfile(key, dst, src)
srcf = os.path.join(CUR, opts['dotpath'], src)
if os.path.exists(srcf):