Skip to content

Commit

Permalink
Merge pull request open-mpi#620 from ribab/topic/copytree_dirname_copy
Browse files Browse the repository at this point in the history
Fixed error with Copytree preserving dirname
  • Loading branch information
noahv authored Jan 27, 2018
2 parents d767f59 + 0be9517 commit 7380e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylib/Utilities/Copytree.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def execute(self, log, keyvals, testDef):
srcpath = srcpath.strip()
reload(distutils.dir_util)
if cmds['preserve_directory'] != "0":
subdst = os.path.join(dst,os.path.basename(os.path.dirname(srcpath)))
subdst = os.path.join(dst,os.path.basename(srcpath))
if os.path.exists(subdst):
shutil.rmtree(subdst)
os.mkdir(subdst)
Expand Down

0 comments on commit 7380e7f

Please sign in to comment.