add __name__ main
This commit is contained in:
parent
ac02273dd3
commit
65e1d39f26
@ -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
|
||||||
|
|
||||||
app = fenrir()
|
if __name__ == "__main__":
|
||||||
app.proceed()
|
app = fenrir()
|
||||||
|
app.proceed()
|
||||||
|
Loading…
Reference in New Issue
Block a user