Skip to content
Snippets Groups Projects
Commit abadfdc9 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[config] Centralize config reading

parent 8cc3e195
No related branches found
No related tags found
1 merge request!194Allows extra pip-installable packages to be installed in every newly created environment
Pipeline #45645 passed
#!/usr/bin/env python
# coding=utf-8
"""Reads and treats configuration files"""
import os
import configparser
def read_config():
"""Reads and resolves configuration files, returns a dictionary with read
values"""
data = configparser.ConfigParser()
cfg = os.path.expanduser("~/.bdtrc")
if os.path.exists(cfg):
data.read(cfg)
return data
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment