replace config file name with var
This commit is contained in:
parent
776e4a3d8d
commit
7e76966d5f
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ def set_config(path: str, section: str, option: str, value: Any) -> None:
|
||||||
value: Any
|
value: Any
|
||||||
The value we set the option to.
|
The value we set the option to.
|
||||||
"""
|
"""
|
||||||
config_path = os.path.join(path, '.corrlib')
|
config_path = os.path.join(path, CONFIG_FILENAME)
|
||||||
config = ConfigParser()
|
config = ConfigParser()
|
||||||
if os.path.exists(config_path):
|
if os.path.exists(config_path):
|
||||||
config.read(config_path)
|
config.read(config_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue