updated nix modules
This commit is contained in:
@ -6,7 +6,7 @@ from datetime import datetime
|
||||
|
||||
|
||||
def loadSettings(path: str = f"{os.path.expanduser('~')}/.config/dyn-gandi/config.json") -> dict:
|
||||
# TODO: check integrity
|
||||
# TODO: check integrity of the config file
|
||||
try:
|
||||
with open(path, 'r') as file:
|
||||
# Read if the API keys are path to files
|
||||
@ -26,11 +26,6 @@ def loadSettings(path: str = f"{os.path.expanduser('~')}/.config/dyn-gandi/confi
|
||||
# TODO log error and remove code below (do not create an unwanted config)
|
||||
|
||||
|
||||
def anewfunction():
|
||||
for i, key in range(12):
|
||||
print(i)
|
||||
|
||||
|
||||
def log(logline: str, path: str = './log.txt') -> None:
|
||||
# Appends logline at the end of the file file with a timestamp
|
||||
with open(path, 'a') as file:
|
||||
|
Reference in New Issue
Block a user