This commit is contained in:
Mengsk 2023-09-27 11:46:52 +02:00
parent b35621fc63
commit 42eb4e0da0
1 changed files with 3 additions and 3 deletions

View File

@ -64,18 +64,18 @@ def ListPath(path, blacklist=[]):
dir = os.path.dirname(file)
if dir not in dirs:
dirs.append(dir)
# Print .c groupped by dir
# Print .c grouped by dir
for dir in dirs:
print('<group name="' + dir.replace('../', '').replace('\\','/') + '">')
for file in files:
if os.path.dirname(file) == dir:
print(' <path>$TUSB_DIR$/' + file.replace('../','').replace('\\','/')+'</path>')
print('</group>')
def List():
ListPath('src', [ 'template.c', 'dcd_synopsys.c', 'dcd_esp32sx.c' ])
ListPath('lib/SEGGER_RTT')
if __name__ == "__main__":
if (len(sys.argv) > 1):
if (sys.argv[1] == 'l'):