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

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

parent 857f1674
from sys import argv
from yaml import load, dump
class Config(object):
CONFIG_LOCATION = "config.yaml"
CONFIG_LOCATION = argv[1] # "config.yaml"
def __init__(self):
self.data = load(open(self.CONFIG_LOCATION, 'r'))
\ No newline at end of file
self.data = load(open(self.CONFIG_LOCATION, 'r'))
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