Skip to content

Commit

Permalink
fix: [launch] check conf file
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCruciani committed Oct 15, 2024
1 parent 58cce0b commit 6a3557b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/app/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
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 = []

Expand Down

1 comment on commit 6a3557b

@adulau
Copy link
Member

@adulau adulau commented on 6a3557b Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Please sign in to comment.