19 lines
No EOL
365 B
Python
19 lines
No EOL
365 B
Python
import toml
|
|
|
|
tomlConf = toml.load('./config.toml')
|
|
|
|
print(tomlConf)
|
|
barcos = {k: v for k, v in tomlConf["barco"].items()}
|
|
print()
|
|
print(barcos)
|
|
|
|
newBarcos = {k: v for k,v in barcos["novi"].items()}
|
|
|
|
print(newBarcos)
|
|
|
|
for pos in newBarcos.keys():
|
|
atrs = newBarcos[pos]
|
|
print(atrs)
|
|
ip = atrs['ip']
|
|
# etc
|
|
# launch scripty thingy with atrs[IP], itd |