beetbox/confuse

resourcedir and jsondir errors

Opened this issue · 1 comments

I had a yaml config like:

speed: 1000
max_rows: 500000
reverse: False
search_sort: startEpochMicrosec
jsondir: test1
resourcedir: test2

and got an key error due referencing jsondir and resourcedir keys. so I renamed the keys to rd and jd, and it works. Appears to me as though there is an limitation with using dir at the end of the key. Weird.

  speed = confuse_config['speed'].get()
  reverse = confuse_config['reverse'].get()
  sortby = confuse_config['search_sort'].get()
  jdir = confuse_config['jd'].get()
  rdir = confuse_config['rd'].get()

Can you please include your full code and the full error message? Otherwise, it's pretty hard to see what's going on here.