This commit is contained in:
chrys 2017-07-19 18:21:46 +02:00
parent 0d6df688dc
commit 70156493ff

View File

@ -17,6 +17,7 @@ import argparse
class fenrirManager(): class fenrirManager():
def __init__(self): def __init__(self):
self.initialized = False
cliArgs = self.handleArgs() cliArgs = self.handleArgs()
if not cliArgs: if not cliArgs:
return return
@ -29,6 +30,7 @@ class fenrirManager():
self.environment['runtime']['outputManager'].presentText(_("Start Fenrir"), soundIcon='ScreenReaderOn', interrupt=True) self.environment['runtime']['outputManager'].presentText(_("Start Fenrir"), soundIcon='ScreenReaderOn', interrupt=True)
signal.signal(signal.SIGINT, self.captureSignal) signal.signal(signal.SIGINT, self.captureSignal)
signal.signal(signal.SIGTERM, self.captureSignal) signal.signal(signal.SIGTERM, self.captureSignal)
self.initialized = True
self.wasCommand = False self.wasCommand = False
def handleArgs(self): def handleArgs(self):