koebi / potypo

spellchecking for .po-files
MIT License
12 stars 5 forks source link

Should wl_dir be optional? #5

Closed jieter closed 6 years ago

jieter commented 6 years ago

The comment for wl_dir in the README.md seems to suggest that it's also possible to put the files next the locales. I tried omitting the setting, resulting in this error message:

$ potypo
Traceback (most recent call last):
  File "/Users/jieter/.virtualenvs/django-tables2/bin/potypo", line 11, in <module>
    sys.exit(main())
  File "/Users/jieter/.virtualenvs/django-tables2/lib/python3.6/site-packages/potypo/__main__.py", line 61, in main
    en_wordlist = Check.get_wordlist(conf['default_language'], conf['wl_dir'], conf['locales_dir'])
  File "/Users/jieter/.pyenv/versions/3.6.3/lib/python3.6/configparser.py", line 1233, in __getitem__
    raise KeyError(key)
KeyError: 'wl_dir'

Maybe the setting should be optional?