You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
405 B
Python

2 years ago
import os
import yaml
class ServerConfig:
config_file = {}
with open("~/.config/orchestrator/config.yml", "r") as stream:
try:
config_file = yaml.safe_load(stream)
except Exception as e:
print(e)
config = config_file
server_name_override = os.environ.get("VALHALLA_SERVER_NAME")
server_port_override = os.environ.get("VALHALLA_SERVER_PORT")