(p, rest=[])
| 881 | # The relpath functionality is written by |
| 882 | # Cimarron Taylor |
| 883 | def split(p, rest=[]): |
| 884 | (h,t) = os.path.split(p) |
| 885 | if len(h) < 1: return [t]+rest |
| 886 | if len(t) < 1: return [h]+rest |
| 887 | return split(h,[t]+rest) |
| 888 | |
| 889 | def commonpath(l1, l2, common=[]): |
| 890 | if len(l1) < 1: return (common, l1, l2) |
no outgoing calls