Source code for conda_tools.config

import json
from os.path import exists

config = None

[docs]def load_config(path): if exists(path): with open(path, 'r') as cin: x = json.load(cin) global config config = config or x
[docs]def save_config(path, config): with open(path, 'w') as cout: json.dump(cout)