forked from dhabensky/PyBounds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplay.py
More file actions
39 lines (30 loc) · 781 Bytes
/
Copy pathDisplay.py
File metadata and controls
39 lines (30 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python3.5
import pickle
import sys
def main():
if len(sys.argv) == 1:
print("file argument required")
exit(1)
try:
f = open(sys.argv[1], 'rb')
task_result = pickle.load(f)
f.close()
except Exception as ex:
print("cannot open file: " + sys.argv[1] + " " + str(ex))
exit(1)
print("")
for i in range(0, len(task_result)):
if len(task_result[i]) != 0:
progname = task_result[i][0].args_start_list[0]
else:
print("\n = #" + str(i) + ": no data ==========")
continue
print("\n = #" + str(i) + " " + progname + " ==========")
for case in task_result[i]:
print(case)
print(" from: " + ", ".join(case.args_start_list[1:]))
print(" to: " + ", ".join(case.args_end_list[1:]))
pass
pass
if __name__ == "__main__":
main()