nmoya / whatsapp-parser

Parser to the What's App log file.
MIT License
47 stars 23 forks source link

Default path for storing basic_stats.json gives error in case logs directory doesn't exist #7

Closed manu-chroma closed 7 years ago

manu-chroma commented 7 years ago

Got the following error in the end when running testChat2.txt file.

the hardcoded default JSON output file name: ./logs/basic_stats.json' gives error in case /logs folder is not present inside the root directory.

Traceback (most recent call last):
  File "Chat.py", line 227, in <module>
    c.save_features(args["output"])
  File "Chat.py", line 196, in save_features
    arq = open(output_name, "w")
IOError: [Errno 2] No such file or directory: './logs/basic_stats.json'