mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 12:51:11 +00:00
ensure abs path when importing for #60
This commit is contained in:
@@ -257,6 +257,7 @@ def importer(opts, conf, paths):
|
|||||||
LOG.err('\"{}\" does not exist, ignored !'.format(path))
|
LOG.err('\"{}\" does not exist, ignored !'.format(path))
|
||||||
continue
|
continue
|
||||||
dst = path.rstrip(os.sep)
|
dst = path.rstrip(os.sep)
|
||||||
|
dst = os.path.abspath(dst)
|
||||||
src = dst
|
src = dst
|
||||||
if dst.startswith(home):
|
if dst.startswith(home):
|
||||||
src = dst[len(home):]
|
src = dst[len(home):]
|
||||||
|
|||||||
Reference in New Issue
Block a user