github.com/annchain/OG@v0.0.9/scripts/debug/dkg_debug.py (about)

     1  import os
     2  import subprocess
     3  
     4  ROOT = 'D:/tmp/debug'
     5  
     6  if __name__ == '__main__':
     7      files = os.listdir(ROOT)
     8      for p in files:
     9          with open(os.path.join(ROOT, p)) as f:
    10              s = set(f)
    11              print(p, len(s))