Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import json
  2.  
  3.  
  4. class Params:
  5. def __init__(self, path):
  6. with open(path) as params_file:
  7. params = json.load(params_file)
  8. self.__dict__.update(params)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement