alfa.py: Agregado version al show_info

This commit is contained in:
Intel1
2018-07-02 08:43:40 -05:00
committed by GitHub
parent 3fca1d07fa
commit f4198b61c2

View File

@@ -20,6 +20,7 @@ import WebSocket
http_port = config.get_setting("server.port")
websocket_port = config.get_setting("websocket.port")
myip = config.get_local_ip()
version = config.get_addon_version()
def thread_name_wrap(func):
@@ -43,7 +44,7 @@ if sys.version_info < (2, 7, 11):
def show_info():
os.system('cls' if os.name == 'nt' else 'clear')
print ("--------------------------------------------------------------------")
print ("Alfa Iniciado")
print ("Alfa %s Iniciado" %version)
print ("La URL para acceder es http://%s:%s" % (myip, http_port))
print ("WebSocket Server iniciado en ws://%s:%s" % (myip, websocket_port))
print ("--------------------------------------------------------------------")