blabla
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.
 
 
 

16 lines
299 B

#!/usr/bin/python3
import os
config_file = '.env.dist'
if os.path.isfile('.env'):
config_file = '.env'
CONFIG = {}
vsebina = []
with open(config_file) as cf:
vsebina = cf.readlines()
for vrstica in vsebina:
key, val = vrstica.split('=', 1)
CONFIG[key] = val.rstrip()