def clip_path(path):
 if (sabnzbd.WIN32 and path and ('?' in path)):
  path = path.replace(u'\\\\?\\UNC\\', u'\\\\').replace(u'\\\\?\\', u'')
 return path

def clip_path ( path ) : if ( sabnzbd . WIN32 and path and ( '?' in path ) ) : path = path . replace ( u'\\\\?\\UNC\\' , u'\\\\' ) . replace ( u'\\\\?\\' , u'' ) return path
remove ? or ?unc prefix from windows path .