Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cfg = {}
- map(lambda (k,s,v): cfg.update({k:int(v)}),[l.replace(' ','').partition('=') for l in open('config.txt')])
- print cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement