Pastebin

Paste #8893: config.py

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

import sys
import yaml
try:
    with open(config_file_path, 'r') as configfile:
        cfg = yaml.load(configfile, Loader=Loader)
except IOError:
    print("FATAL: Failed to open config file")
    sys.exit(1)
    pass

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.