made more concise
This commit is contained in:
parent
91e4b5f73a
commit
99d387c692
@ -1,10 +1,7 @@
|
|||||||
import requests, json, re, os
|
import requests, json, re, os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
def loadSettings(path = None) -> dict:
|
def loadSettings(path = f"{os.path.expanduser('~')}/config.json") -> dict:
|
||||||
if path is None:
|
|
||||||
path = f"{os.path.expanduser('~')}/config.json"
|
|
||||||
|
|
||||||
# TODO: check integrity
|
# TODO: check integrity
|
||||||
try:
|
try:
|
||||||
with open(path, 'r') as file:
|
with open(path, 'r') as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user