rmountjoy92 / DashMachine

Another web application bookmark dashboard, with fun features.
GNU General Public License v3.0
1.24k stars 119 forks source link

disable interpolation for config reader #93

Closed Aerion closed 4 years ago

Aerion commented 4 years ago

This caused strings whith the '%' character in it to be interpreted by Python's ConfigParser. This behavior is not needed for DashMachine, the goal is to read exactly what the user types.

Setting interpolation to None fixes this.

With interpolation set to None, the parser would simply return %(my_dir)s/Pictures as the value of my_pictures and %(home_dir)s/lumberjack as the value of my_dir.

https://docs.python.org/3/library/configparser.html?highlight=configparser#interpolation-of-values

Fixes #56 and #89

rmountjoy92 commented 4 years ago

Righteous! Thanks man!