fixes main scripts

This commit is contained in:
Patrick McDonagh
2017-04-05 12:04:00 -05:00
parent e64abc1f91
commit bd42525080
2 changed files with 4 additions and 15 deletions

View File

@@ -1,10 +1,5 @@
from poc_to_modbus import ModbusTCPMongoServer
def main():
modbus_tcp_server = ModbusTCPMongoServer()
modbus_tcp_server.run()
if __name__ == '__main__':
main()
modbus_tcp_server = ModbusTCPMongoServer()
modbus_tcp_server.run()

View File

@@ -6,11 +6,5 @@ PLC_IP_ADDRESS = getenv("PLC_IP_ADDRESS")
if not PLC_IP_ADDRESS:
exit("No PLC_IP_ADDRESS set in the environment variables")
def main():
scraper_thread = PLC_to_Mongo(PLC_IP_ADDRESS)
scraper_thread.run()
if __name__ == '__main__':
main()
scraper_thread = PLC_to_Mongo(PLC_IP_ADDRESS)
scraper_thread.run()