winIDEA SDK
test_get_download_list.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8winidea_id = ''
9
10
11def test_removeFromDownloadList():
12 conn_mgr = ic.ConnectionMgr()
13 conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14
15 opt_ctrl = ic.COptionController(conn_mgr, '/IDE/System.Debug.SoCs[0].DLFs_Program.File')
16 download_list = list()
17
18 for file_index in range(opt_ctrl.size()):
19 file = opt_ctrl.at(file_index)
20 download_list.append(file.get('Path'))
21
22 print(download_list)
23
24
25if __name__ == '__main__':
26 test_removeFromDownloadList()