Commit 7106d817 authored by YuriNenakhov's avatar YuriNenakhov

Data output order correction

parent 5a668049
...@@ -97,6 +97,11 @@ for line in sys.stdin: ...@@ -97,6 +97,11 @@ for line in sys.stdin:
for i in all_paths: for i in all_paths:
if i in srcdir: if i in srcdir:
all_paths.remove(i) all_paths.remove(i)
print(" ╔════════════════════╗\n ║ include paths ║\n ╚════════════════════╝")
for i in inc_paths:
print("<listOptionValue builtIn=\"false\" value=\"&quot;${workspace_loc:"+i+"}&quot;\"/>")
print(" ╔════════════════════╗\n ║ define symbols ║\n ╚════════════════════╝") print(" ╔════════════════════╗\n ║ define symbols ║\n ╚════════════════════╝")
xml_defs = "" xml_defs = ""
for i in defsyms: for i in defsyms:
...@@ -110,10 +115,8 @@ for i in defsyms: ...@@ -110,10 +115,8 @@ for i in defsyms:
xml_defs = xml_defs[:-1] xml_defs = xml_defs[:-1]
print(xml_defs) print(xml_defs)
print(" ╔════════════════════╗\n ║ include paths ║\n ╚════════════════════╝") print(" ╔════════════════════╗\n ║ source paths ║\n ╚════════════════════╝")
for i in inc_paths: xml_src = "<entry excluding=\""
print("<listOptionValue builtIn=\"false\" value=\"&quot;${workspace_loc:"+i+"}&quot;\"/>")
all_paths.sort() all_paths.sort()
for i in range(len(all_paths)): for i in range(len(all_paths)):
try: try:
...@@ -121,8 +124,6 @@ for i in range(len(all_paths)): ...@@ -121,8 +124,6 @@ for i in range(len(all_paths)):
all_paths.pop(i+1) all_paths.pop(i+1)
except IndexError: except IndexError:
pass pass
print(" ╔════════════════════╗\n ║ source paths ║\n ╚════════════════════╝")
xml_src = "<entry excluding=\""
for i in all_paths: for i in all_paths:
i=i.replace(proj_dir+src_dir+"/","") i=i.replace(proj_dir+src_dir+"/","")
xml_src += i xml_src += i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment