Commit c83156df authored by Pedro Henrique Kopper's avatar Pedro Henrique Kopper
Browse files

Suportar diferentes arquivos de configuração pela linha de comando

parent 857f1674
from sys import argv
from yaml import load, dump from yaml import load, dump
class Config(object): class Config(object):
CONFIG_LOCATION = "config.yaml" CONFIG_LOCATION = argv[1] # "config.yaml"
def __init__(self): def __init__(self): = load(open(self.CONFIG_LOCATION, 'r')) = load(open(self.CONFIG_LOCATION, 'r'))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment