(path, EXCLUDE, endings=[".py"])
| 280 | #helper functions |
| 281 | |
| 282 | def 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 | |
| 297 | def makepot(domain, p, excludes=[], includes="", endings=[".py"], xxargs=[]): |