mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
9 lines
263 B
Python
9 lines
263 B
Python
import json
|
|
import os
|
|
|
|
|
|
def load_from_file(self, option_file: str = "./option.json"):
|
|
if os.path.exists(option_file):
|
|
with open(option_file, encoding="utf-8") as file:
|
|
file_json = json.load(file)
|
|
self.load_from_json(file_json)
|