add __name__ main

This commit is contained in:
chrys87 2016-09-15 11:30:34 +02:00 committed by GitHub
parent ac02273dd3
commit 65e1d39f26

View File

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