Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/a/e/aenea-HEAD/util/reloadconfig.py   aenea(Download)
def reload_aenea_configuration():
  for name in os.listdir("%s\\grammars_enabled" % config.PROJECT_ROOT):
    if name.endswith(".py"):
      with open("%s\\grammars_enabled\\%s" % (config.PROJECT_ROOT, name)) as infd:
        with open("C:\\NatLink\\NatLink\\MacroSystem\\_%s" % name, "w") as outfd:
          outfd.write(infd.read())
    elif os.path.isdir("%s\\grammars_enabled\\%s" % (config.PROJECT_ROOT, name)):
      shutil.rmtree("C:\\NatLink\\NatLink\\MacroSystem\\%s" % name, ignore_errors=True)
      shutil.copytree("%s\\grammars_enabled\\%s" % (config.PROJECT_ROOT, name), "C:\\NatLink\\NatLink\\MacroSystem\\%s" % name)
  for name in os.listdir("%s\\util" % config.PROJECT_ROOT):