Skip to content

Commit

Permalink
collect final connections, dump them as dict on stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
arnehilmann committed Oct 26, 2016
1 parent 539978d commit a1c5824
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/scripts/collect-netconns
@@ -0,0 +1,15 @@
#!/usr/bin/env python
from __future__ import print_function

import json
import os

final_dir = "/tmp/netconns/final"

result = {}
for f in os.listdir(final_dir):
with open(os.path.join(final_dir, f)) as data_file:
data = json.load(data_file)
result[f] = data

print(result)

0 comments on commit a1c5824

Please sign in to comment.