Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config_dict = dict()
- with open('/home/ay/Desktop/config.txt') as fin:
- for line in fin:
- if line:
- conf = line.split('=', 1)
- config_dict[conf[0].strip()] = conf[1].strip()
- print(config_dict)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement