[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables
Ronald Oussoren
report at bugs.python.org
Fri Aug 7 07:26:10 EDT 2020
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
The exception is due to the interpolation feature of ConfigParser, which expects a different syntax. The default interpolation syntax is "%(key)s".
Interpolation can be turned off by passing "interpolation=None" when creating the ConfigParser object.
See also https://docs.python.org/3/library/configparser.html#interpolation-of-values
----------
nosy: +ronaldoussoren
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41500>
_______________________________________
More information about the Python-bugs-list
mailing list