From 9a07b7bc7f5cb4968235da6b511eee35efd4610e Mon Sep 17 00:00:00 2001 From: Shaik Abdul Sadiq <1sadiq.sa0@gmail.com> Date: Sat, 15 Feb 2020 22:13:45 +0530 Subject: [PATCH] Update windows.py --- src/mbed_os_tools/detect/windows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mbed_os_tools/detect/windows.py b/src/mbed_os_tools/detect/windows.py index ff7f6ec640..528d79f5ff 100644 --- a/src/mbed_os_tools/detect/windows.py +++ b/src/mbed_os_tools/detect/windows.py @@ -70,8 +70,8 @@ def _is_mbed_volume(volume_string): def _get_cached_mounted_points(): """! Get the volumes present on the system - @return List of mount points and their associated target id - Ex. [{ 'mount_point': 'D:', 'target_id_usb_id': 'xxxx'}, ...] + @return List of mount points and their associated volume string + Ex. [{ 'mount_point': 'D:', 'volume_string': 'xxxx'}, ...] """ result = [] try: @@ -80,7 +80,7 @@ def _get_cached_mounted_points(): winreg.HKEY_LOCAL_MACHINE, "SYSTEM\\MountedDevices" ) for v in _iter_vals(mounted_devices_key): - # Valid entries have the following format: \DosDevices\D: + # Valid entries have the following format: \\DosDevices\\D: if "DosDevices" not in v[0]: continue