Using env_file var now
This commit is contained in:
parent
919c50fe07
commit
8ffb00ad58
|
@ -34,7 +34,7 @@ class Bot(irc3.IrcBot):
|
||||||
cfg_file = os.path.join(cls.CONFIG_DIR, cfg_file)
|
cfg_file = os.path.join(cls.CONFIG_DIR, cfg_file)
|
||||||
env_file = os.path.join(cls.CONFIG_DIR, env_file)
|
env_file = os.path.join(cls.CONFIG_DIR, env_file)
|
||||||
|
|
||||||
load_dotenv('.env')
|
load_dotenv(env_file)
|
||||||
|
|
||||||
with open(cfg_file, 'r') as fp:
|
with open(cfg_file, 'r') as fp:
|
||||||
conf = json.load(fp)
|
conf = json.load(fp)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user