From b7e710838e27df49510ab69ef875dc790bf9c00f Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Fri, 2 Feb 2018 12:08:38 +0000 Subject: [PATCH] Bugfix to imcp - if dest is just a file name with no prefix, cannot get its dirname. Make it abs --- fsl/utils/imcp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fsl/utils/imcp.py b/fsl/utils/imcp.py index d2049cb34..ffb41a4ec 100644 --- a/fsl/utils/imcp.py +++ b/fsl/utils/imcp.py @@ -58,6 +58,9 @@ def imcp(src, if op.isdir(dest): dest = op.join(dest, op.basename(src)) + src = op.abspath(src) + dest = op.abspath(dest) + srcBase, srcExt = fslimage.splitExt(src) destBase, destExt = fslimage.splitExt(dest) -- GitLab