mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-11 02:50:00 +01:00
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:
parent
f75d91f59b
commit
53d3432df1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue