mirror of https://github.com/MISP/misp-modules
fix: [launch] check conf file
parent
58cce0b81a
commit
6a3557bae7
|
@ -8,7 +8,11 @@ from pathlib import Path
|
||||||
import configparser
|
import configparser
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
CONF_PATH = os.path.join(os.getcwd(), "conf", "config.cfg")
|
CONF_PATH = os.path.join(os.getcwd(), "conf", "config.cfg")
|
||||||
config.read(CONF_PATH)
|
if os.path.isfile(CONF_PATH):
|
||||||
|
config.read(CONF_PATH)
|
||||||
|
else:
|
||||||
|
print("[-] No conf file found. Copy config.cfg.sample to config.cfg")
|
||||||
|
exit()
|
||||||
|
|
||||||
MODULES = []
|
MODULES = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue