forked from Hay1tsme/artemis
DIANA_CFG_DIR -> ARTEMIS_CFG_DIR
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
from os import mkdir, path, access, W_OK
|
||||
import os
|
||||
from os import path
|
||||
import yaml
|
||||
import asyncio
|
||||
|
||||
@ -30,6 +31,8 @@ if __name__ == "__main__":
|
||||
cfg_dict = yaml.safe_load(open(f"{args.config}/core.yaml"))
|
||||
cfg_dict.get("database", {})["loglevel"] = "info"
|
||||
cfg.update(cfg_dict)
|
||||
|
||||
os.environ["ARTEMIS_CFG_DIR"] = args.config
|
||||
|
||||
core.logger.init_root_logger(cfg)
|
||||
|
||||
|
Reference in New Issue
Block a user