Verify if project path is a directory.
This fixes ".DS_Store" problem on macOS.
@@ -96,6 +96,7 @@ class ProjectFirmwareBundle(firmware.FirmwareBundle):
firmware_list = []
for name in project_dir_list:
build_dir = tool_dir + os.sep + name + os.sep + 'build'
+ if os.path.isdir(build_dir):
daplink_firmware = DAPLinkFirmware(name, self, build_dir)
if daplink_firmware.valid:
firmware_list.append(daplink_firmware)
