xonsh-cheatsheet
xonsh-cheatsheet copied to clipboard
How to update enviroment from config file
sharing
#!/usr/bin/env xonsh
from configobj import ConfigObj
conf = ConfigObj("/home/admin/.db_conf")
# Atualizar variaveis de ambiente
${...}.update(conf)
PR is welcome!