MCPcopy Create free account
hub / github.com/dobin/SuperMega / load

Method load

config.py:27–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25
26
27 def load(self):
28 with open(CONFIG_FILE) as jsonfile:
29 try:
30 self.data = yaml.safe_load(jsonfile)
31 except yaml.YAMLError as e:
32 print('Decoding {} as failed with: {}'.format(CONFIG_FILE, e))
33 quit()
34
35 if 'server' in os.environ:
36 server = os.environ["server"]
37 self.data["server"] = { "server": server }
38 print("Using ENV: server={}, overwriting all others from config.yaml".format(
39 server))
40
41
42 def make_encryption_keys(self):

Callers 4

mainFunction · 0.80
mainFunction · 0.80
get_project_settingMethod · 0.80
views_project.pyFile · 0.80

Calls 1

formatMethod · 0.80

Tested by 1

mainFunction · 0.64