MCPcopy Create free account
hub / github.com/boostorg/build / create_file

Function create_file

v2/test/load_dir.py:27–35  ·  view source on GitHub ↗
(arg, dirname, fnames)

Source from the content-addressed store, hash-verified

25
26
27def create_file(arg, dirname, fnames):
28 for n in fnames:
29 path = os.path.join(dirname, n)
30 if not os.path.isdir(path):
31 print "t.write(\"%s\", \"\"\"" % (remove_first_component(path),),
32 f = open(path, "r")
33 for l in f:
34 print l,
35 print '\n""")\n'
36
37
38header = """#!/usr/bin/python

Callers

nothing calls this directly

Calls 1

remove_first_componentFunction · 0.85

Tested by

no test coverage detected