generated from MONICA-Project/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scral_startup.py
32 lines (26 loc) · 1.33 KB
/
scral_startup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# !/usr/bin/env python3
# -*- coding: utf-8 -*-
##############################################################################
# _____ __________ ___ __ #
# / ___// ____/ __ \/ | / / #
# \__ \/ / / /_/ / /| | / / #
# ___/ / /___/ _, _/ ___ |/ /___ Smart City Resource Adaptation Layer #
# /____/\____/_/ |_/_/ |_/_____/ v.2.0 - enhanced by Python 3 #
# #
# LINKS Foundation, (c) 2019 #
# developed by Jacopo Foglietti & Luca Mannella #
# SCRAL is distributed under a BSD-style license -- See file LICENSE.md #
# #
##############################################################################
import signal
import sys
import scral_core as scral
from scral_core import util
from scral_core.constants import END_MESSAGE
from scral_module import start_module as module
if __name__ == '__main__':
print(scral.BANNER % scral.VERSION)
sys.stdout.flush()
signal.signal(signal.SIGINT, util.signal_handler)
module.main()
print(END_MESSAGE)