diff --git a/src/fenrir-package/fenrir.py b/src/fenrir-package/fenrir.py index 4b97a605..5f0681fd 100755 --- a/src/fenrir-package/fenrir.py +++ b/src/fenrir-package/fenrir.py @@ -15,6 +15,8 @@ from utils import debug class fenrir(): def __init__(self): self.environment = settingsManager.settingsManager().initFenrirConfig() + if not self.environment: + signal.signal(signal.SIGINT, self.captureSignal) def proceed(self): @@ -81,5 +83,6 @@ class fenrir(): time.sleep(0.8) # wait a little before splatter it :) self.environment = None -app = fenrir() -app.proceed() +if __name__ == "__main__": + app = fenrir() + app.proceed()