paperwork icon indicating copy to clipboard operation
paperwork copied to clipboard

Configuration file: switch to JSON

Open jflesch opened this issue 8 years ago • 2 comments

Python ConfigParser has annoying limitations that JSON module doesn't have. Mainly, ConfigParser seems to have issues with special characters ('\', '\n', spaces, etc). This is why I had to encode the work directory path using base64 (but base64 makes it not-user-friendly / not-editor-friendly at all).

jflesch avatar Nov 10 '17 10:11 jflesch

Could it be that you run into the interpolation feature of COnfigParser? Try to use a RawConfigParser and see if this improves things?

spaetz avatar Nov 12 '17 20:11 spaetz

Hm good point. It's quite possible actually. I'll have to do some tests

jflesch avatar Nov 12 '17 20:11 jflesch