MCPcopy Create free account
hub / github.com/apache/httpd / _make_template

Method _make_template

test/pyhttpd/env.py:123–130  ·  view source on GitHub ↗
(self, src, dest)

Source from the content-addressed store, hash-verified

121 shutil.copy(src_path, os.path.join(conf_dest_dir, name))
122
123 def _make_template(self, src, dest):
124 var_map = dict()
125 for name, value in HttpdTestEnv.__dict__.items():
126 if isinstance(value, property):
127 var_map[name] = value.fget(self.env)
128 t = Template(''.join(open(src).readlines()))
129 with open(dest, 'w') as fd:
130 fd.write(t.substitute(var_map))
131
132 def _make_modules_conf(self):
133 loaded = set()

Callers 2

_make_confMethod · 0.95
_make_pebble_confMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected