Skip to content

Commit a8d2aa6

Browse files
author
Juho Hovila
committed
Add shell true to windows copy
1 parent 536fc43 commit a8d2aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed_flasher/flashers/FlasherMbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def copy_file(self, source, destination):
215215
def _copy_file_windows(self, source, destination):
216216
command = "copy \"{}\" \"{}\"".format(os.path.abspath(source), destination)
217217
self.logger.debug("Copying with command: {}".format(command))
218-
subprocess.check_call(command)
218+
subprocess.check_call(command, shell=True)
219219

220220
def _copy_file(self, aux_source, destination):
221221
destination_fd = None

0 commit comments

Comments
 (0)