def _ToGypPath(path):
 if ((os.sep == '\\') and (os.altsep == '/')):
  return path.replace('\\', '/')
 return path

def _ToGypPath ( path ) : if ( ( os . sep == '\\' ) and ( os . altsep == '/' ) ) : return path . replace ( '\\' , '/' ) return path
converts a path to the format used by gyp .