MCPcopy
hub / github.com/pyload/pyload / writeConfig

Function writeConfig

pyLoadCli.py:466–473  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

464
465
466def writeConfig(opts):
467 try:
468 with open(join(homedir, ".pyloadcli"), "w") as cfgfile:
469 cfgfile.write("[cli]")
470 for opt in opts:
471 cfgfile.write("%s=%s\n" % (opt, opts[opt]))
472 except:
473 print _("Couldn't write user config file")
474
475
476def main():

Callers 1

mainFunction · 0.85

Calls 2

_Function · 0.50
writeMethod · 0.45

Tested by

no test coverage detected