MCPcopy Create free account
hub / github.com/TheDeepOpc/deepsec / load_settings

Method load_settings

deepsec-l1.py:567–585  ·  view source on GitHub ↗

Sozlamalarni yuklash

(self)

Source from the content-addressed store, hash-verified

565 self.settings = self.load_settings()
566
567 def load_settings(self):
568 """Sozlamalarni yuklash"""
569 settings_file = "audit_settings.json"
570 default_settings = {
571 "language": "en",
572 "output_dir": "reports",
573 "api_key": "",
574 "max_file_size": 100000,
575 "scan_depth": 10
576 }
577
578 if os.path.exists(settings_file):
579 try:
580 with open(settings_file, 'r') as f:
581 return json.load(f)
582 except:
583 pass
584
585 return default_settings
586
587 def save_settings(self):
588 """Sozlamalarni saqlash"""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected