Commit 4e32a1e0 authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

Fix ConfigParser

parent d1bf93ca
......@@ -36,8 +36,8 @@ def main():
config = configparser.ConfigParser({'host': '10.10.10.1', 'port': '5556'})
config.read('config.cfg')
port = config['port']
host = config['host']
port = config["DEFAULT"]['port']
host = config["DEFAULT"]['host']
# Socket to talk to server
context = zmq.Context()
......
......@@ -22,8 +22,8 @@ def main():
config = configparser.ConfigParser({'host': '10.10.10.1', 'port': '5556'})
config.read('config.cfg')
port = config['port']
host = config['host']
port = config["DEFAULT"]['port']
host = config["DEFAULT"]['host']
# Socket to talk to server
context = zmq.Context()
......
......@@ -16,8 +16,8 @@ def main():
config = configparser.ConfigParser({'host': '10.10.10.1', 'port': '5556'})
config.read('config.cfg')
port = config['port']
host = config['host']
port = config["DEFAULT"]['port']
host = config["DEFAULT"]['host']
pg.init(44100, size=-16, channels=1, buffer=4096)
pg.mixer.init()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment