def _FixPath(path):
 if (fixpath_prefix and path and (not os.path.isabs(path)) and (not (path[0] == '$'))):
  path = os.path.join(fixpath_prefix, path)
 path = path.replace('/', '\\')
 path = _NormalizedSource(path)
 if (path and (path[(-1)] == '\\')):
  path = path[:(-1)]
 return path

def _FixPath ( path ) : if ( fixpath_prefix and path and ( not os . path . isabs ( path ) ) and ( not ( path [ 0 ] == '$' ) ) ) : path = os . path . join ( fixpath_prefix , path ) path = path . replace ( '/' , '\\' ) path = _NormalizedSource ( path ) if ( path and ( path [ ( - 1 ) ] == '\\' ) ) : path = path [ : ( - 1 ) ] return path
convert paths to a form that will make sense in a vcproj file .