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():
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()