15 |
import os.path |
import os.path |
16 |
from tempfile import mktemp |
from tempfile import mktemp |
17 |
|
|
18 |
from string import split, join |
from string import join |
19 |
|
|
20 |
from Thuban import _ |
from Thuban import _ |
21 |
|
|
29 |
|
|
30 |
# split the filenames into their components. remove the first item |
# split the filenames into their components. remove the first item |
31 |
# since it will be always empty because both names are absolute. |
# since it will be always empty because both names are absolute. |
32 |
dir_parts = split(dir, sep)[1:] |
dir_parts = dir.split(sep)[1:] |
33 |
absname_parts = split(absname, sep)[1:] |
absname_parts = absname.split(sep)[1:] |
34 |
|
|
35 |
# count the number of common parts at the start of dir_parts and |
# count the number of common parts at the start of dir_parts and |
36 |
# absname_parts |
# absname_parts |