fix: [launch] check conf file

pull/700/head
David Cruciani 2024-10-15 14:18:45 +02:00
parent 58cce0b81a
commit 6a3557bae7
No known key found for this signature in database
GPG Key ID: 8690CDE1E3994B9B
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,11 @@ from pathlib import Path
import configparser
config = configparser.ConfigParser()
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 = []