changeset 1847 | 6198190bc121 |
parent 1744 | 69dfdb26f600 |
child 1881 | 091005ec69c4 |
1846:14b40afccd69 | 1847:6198190bc121 |
---|---|
41 return os.path.join(AbsDir(file), *args) |
41 return os.path.join(AbsDir(file), *args) |
42 |
42 |
43 |
43 |
44 def AbsParentDir(file, level=1): |
44 def AbsParentDir(file, level=1): |
45 path = AbsDir(file) |
45 path = AbsDir(file) |
46 for i in range(0, level): |
46 for dummy in range(0, level): |
47 path = os.path.dirname(path) |
47 path = os.path.dirname(path) |
48 return path |
48 return path |