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

ensure abs path when importing for #60

This commit is contained in:
deadc0de6
2018-09-27 16:19:41 +02:00
parent 1dd70487ae
commit b1e58e8c68

View File

@@ -257,6 +257,7 @@ def importer(opts, conf, paths):
LOG.err('\"{}\" does not exist, ignored !'.format(path))
continue
dst = path.rstrip(os.sep)
dst = os.path.abspath(dst)
src = dst
if dst.startswith(home):
src = dst[len(home):]