def is_relative_path(p):
 p = p.replace('\\', '/')
 if (p and (p[0] == '/')):
  return False
 if (sabnzbd.WIN32 and p and (len(p) > 2)):
  if (p[0].isalpha() and (p[1] == ':') and (p[2] == '/')):
   return False
 return True

def is_relative_path ( p ) : p = p . replace ( '\\' , '/' ) if ( p and ( p [ 0 ] == '/' ) ) : return False if ( sabnzbd . WIN32 and p and ( len ( p ) > 2 ) ) : if ( p [ 0 ] . isalpha ( ) and ( p [ 1 ] == ':' ) and ( p [ 2 ] == '/' ) ) : return False return True
return true if path is relative .