mirror of https://git.48k.eu/ogclient
19 lines
421 B
Python
19 lines
421 B
Python
from src.ogClient import *
|
|
from src.ogConfig import *
|
|
|
|
def main():
|
|
ogconfig = ogConfig()
|
|
if (not ogconfig.parserFile('cfg/ogagent.cfg')):
|
|
print 'Error: Parsing configuration file'
|
|
return 0
|
|
|
|
ip = ogconfig.getValueSection('opengnsys', 'ip')
|
|
port = ogconfig.getValueSection('opengnsys', 'port')
|
|
|
|
client = ogClient(ip, int(port))
|
|
client.connect()
|
|
client.run()
|
|
|
|
if __name__ == "__main__":
|
|
main()
|