MCPcopy
hub / github.com/pyload/pyload / walk_trans

Function walk_trans

pavement.py:282–294  ·  view source on GitHub ↗
(path, EXCLUDE, endings=[".py"])

Source from the content-addressed store, hash-verified

280#helper functions
281
282def walk_trans(path, EXCLUDE, endings=[".py"]):
283 result = ""
284
285 for f in path.walkfiles():
286 if [True for x in EXCLUDE if x in f.dirname().relpath()]: continue
287 if f.name in EXCLUDE: continue
288
289 for e in endings:
290 if f.name.endswith(e):
291 result += "./%s\n" % f.relpath()
292 break
293
294 return result
295
296
297def makepot(domain, p, excludes=[], includes="", endings=[".py"], xxargs=[]):

Callers 1

makepotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected