Skip to content

Instantly share code, notes, and snippets.

@ruescasd
Created October 31, 2013 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruescasd/7247567 to your computer and use it in GitHub Desktop.
Save ruescasd/7247567 to your computer and use it in GitHub Desktop.
def do_dirtally(dir_path):
res_path = os.path.join(dir_path, 'result_json')
with codecs.open(res_path, encoding='utf-8', mode='r') as res_f:
result = json.loads(res_f.read())
return do_tally(dir_path, result['counts'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment