Using env_file var now

This commit is contained in:
mrhanky 2017-08-22 19:01:33 +02:00
parent 919c50fe07
commit 8ffb00ad58
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -34,7 +34,7 @@ class Bot(irc3.IrcBot):
cfg_file = os.path.join(cls.CONFIG_DIR, cfg_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:
conf = json.load(fp)