Add some more features

This commit is contained in:
2024-11-21 00:57:43 -04:00
parent 1ab4e8a813
commit 107e71189c
6 changed files with 55 additions and 17 deletions

View File

@ -67,17 +67,6 @@ def default_settings():
return defaults
def load_settings():
# TODO: Find a better way to do this
if os.environ.get("RAPID_DEVELOPMENT") is not None:
if os.path.exists(user_path):
os.remove(user_path)
if os.path.exists(local_path):
os.remove(local_path)
settings = default_settings()
with open(local_path, mode='w') as file:
tomlkit.dump(settings, file)
return settings
if os.path.exists(local_path):
settings = tomlkit.parse(open(local_path, mode='r').read())
elif os.path.exists(user_path):