Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import yaml
- class ETL:
- config_file = './confs/main.yaml'
- def __init__(self):
- self.__dict__ = self.read_configs()
- def read_configs(self):
- with open(self.config_file, 'r') as f:
- return yaml.safe_load(f)
- class Cosmic:
- def __init__(self, etl):
- self.instCosmic = 'cosmic'
- self.etl = etl
- etl = ETL()
- cosmic = Cosmic(etl)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement