Update boswatch.py

Check for existing config.ini
Without a config.ini there is no possibility to start BOSWatch; therefore it makes sense to put this check on the very beginning of the program.
This commit is contained in:
Florian 2017-02-18 00:23:25 +01:00 committed by GitHub
parent f75d91f59b
commit 53d3432df1

View file

@ -30,6 +30,12 @@ from includes import checkSubprocesses # check startup of the subprocesses
from includes.helper import configHandler
from includes.helper import freqConverter
#
# Check for exisiting config/config.ini-file
#
if not os.path.exists(os.path.dirname(os.path.abspath(__file__))+"/config/config.ini"):
print "ERROR: No config.ini found"
exit(1)
#
# ArgParser