MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

service/settings.py:560–567  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

558 }
559
560 def __init__(self):
561 self.settings = SettingsProvider.getInstance().getSettings('localeSettings', self.defaults)
562
563 try:
564 with open(os.path.join(config.pyfaPath, 'locale', 'progress.json'), "r") as f:
565 self.progress_data = json.load(f)
566 except FileNotFoundError:
567 self.progress_data = {}
568
569 @classmethod
570 def getInstance(cls):

Callers

nothing calls this directly

Calls 2

getSettingsMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected