Something went wrong. Try again.
Affectionately known as Team Degenerate
Something went wrong. Try again.
cache-money-hackathon helpers.py
1234567891011121314151617181920212223from json import dumpsfrom yaml import Loader, loadfrom pathlib import Path
def pretty_print_dict(D): print(dumps(D, indent=1))
def get_proj_dir(): my_path = str(Path.resolve(Path(__file__))) return my_path[:my_path.index(__name__)]
def get_vars(target): # Get config file variables path = get_proj_dir() file = f"{path}config.yaml" open(file) result = load(open(file), Loader=Loader)[target]
return result