/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Lib/fileutil.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Lib/fileutil.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1188 by jonathan, Thu Jun 12 17:00:43 2003 UTC revision 1885 by jan, Thu Oct 30 09:20:15 2003 UTC
# Line 15  import os Line 15  import os
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    
# Line 29  def relative_filename_common(dir, absnam Line 29  def relative_filename_common(dir, absnam
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

Legend:
Removed from v.1188  
changed lines
  Added in v.1885

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26