Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 3418a38

Browse files
[[ Gyp Patch ]] Remove an un-necessary "cd" in MSVS xcopy commands
1 parent 5edcdc2 commit 3418a38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gyp/pylib/gyp/generator/msvs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,8 +1683,8 @@ def _GetCopies(spec):
16831683
src_bare = src[:-1]
16841684
base_dir = posixpath.split(src_bare)[0]
16851685
outer_dir = posixpath.split(src_bare)[1]
1686-
cmd = 'cd "%s" && xcopy /e /f /y "%s" "%s\\%s\\"' % (
1687-
_FixPath(base_dir), outer_dir, _FixPath(dst), outer_dir)
1686+
cmd = 'xcopy /e /f /y "%s" "%s\\%s\\"' % (
1687+
_FixPath(src_bare), _FixPath(dst), outer_dir)
16881688
copies.append(([src], ['dummy_copies', dst], cmd,
16891689
'Copying %s to %s' % (src, dst)))
16901690
else:

0 commit comments

Comments
 (0)