def get_mod_name(path, base):
 rel_path = os.path.relpath(path, base)
 (rel_path, ign) = os.path.splitext(rel_path)
 file_module = ''
 (h, t) = os.path.split(rel_path)
 while (h or t):
  if t:
   file_module = ((t + '.') + file_module)
  (h, t) = os.path.split(h)
 return file_module[:(-1)]

def get_mod_name ( path , base ) : rel_path = os . path . relpath ( path , base ) ( rel_path , ign ) = os . path . splitext ( rel_path ) file_module = '' ( h , t ) = os . path . split ( rel_path ) while ( h or t ) : if t : file_module = ( ( t + '.' ) + file_module ) ( h , t ) = os . path . split ( h ) return file_module [ : ( - 1 ) ]
gets a module name .