Server-side management of photos. Intended to replace Google Photos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
590 B

import os
import json
settings = None
def loadSettings():
global settings
settingsFilename = "settings.json"
# Load git ignored settings, if it exists (so I don't check in my API tokens)
if os.path.isfile("LOCAL_settings.json"):
settingsFilename = "LOCAL_settings.json"
print("Loading settings from {}".format(settingsFilename))
settingsFile = open(settingsFilename, "r")
settingsLines = settingsFile.readlines()
settingsFile.close()
settings = json.loads("".join(settingsLines))
print(settings)
loadSettings()