You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
388 B

from load_asset import save,load
device = load('device')
def add_device(name,fund,sys):
device['devices'][name] = {}
device['devices'][name]['fund'] = fund.upper()
device['devices'][name]['sys'] = sys
return None
t = ''
while t != 'exit':
t = t.split(' ')
if len(t) == 3:
add_device(*t)
t = input('(name fund sys) (or exit):')
save(device,'device')