Added a config.json
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#LOAD THE CONFIG
|
||||
import json
|
||||
|
||||
# Open the configuration file
|
||||
with open('config.json') as f:
|
||||
# Load JSON data from file
|
||||
config = json.load(f)
|
||||
|
||||
# Accessing SC_DOMAIN
|
||||
SITE = config["Siti"]
|
||||
FT_DOMAIN = SITE["Filmpertutti"]['domain']
|
||||
SC_DOMAIN = SITE["StreamingCommunity"]['domain']
|
||||
TF_DOMAIN = SITE["Filmpertutti"]['enabled']
|
||||
FILMPERTUTTI = SITE["Filmpertutti"]['enabled']
|
||||
STREAMINGCOMMUNITY = SITE["StreamingCommunity"]['enabled']
|
||||
#General
|
||||
GENERAL = config['General']
|
||||
dotenv = GENERAL["load_env"]
|
||||
Reference in New Issue
Block a user