(path)
| 15 | |
| 16 | |
| 17 | def remove_first_component(path): |
| 18 | result = [path] |
| 19 | while 1: |
| 20 | s = os.path.split(result[0]) |
| 21 | if not s[0]: |
| 22 | break |
| 23 | result[:1] = list(s) |
| 24 | return apply(os.path.join, result[1:]) |
| 25 | |
| 26 | |
| 27 | def create_file(arg, dirname, fnames): |