def make_paths_absolute(pathdict, keys, base_path=None):
 if (base_path is None):
  base_path = os.getcwd()
 for key in keys:
  if pathdict.has_key(key):
   value = pathdict[key]
   if isinstance(value, types.ListType):
    value = [make_one_path_absolute(base_path, path) for path in value]
   elif value:
    value = make_one_path_absolute(base_path, value)
   pathdict[key] = value

def make_paths_absolute ( pathdict , keys , base_path = None ) : if ( base_path is None ) : base_path = os . getcwd ( ) for key in keys : if pathdict . has_key ( key ) : value = pathdict [ key ] if isinstance ( value , types . ListType ) : value = [ make_one_path_absolute ( base_path , path ) for path in value ] elif value : value = make_one_path_absolute ( base_path , value ) pathdict [ key ] = value
interpret filesystem path settings relative to the base_path given .