def getWpadFiles():
 domainParts = socket.gethostname().split('.')
 pacURLs = []
 for ii in range(len(domainParts)):
  domain = '.'.join(domainParts[ii:])
  pacURLs.append((('http://wpad.' + domain) + '/wpad.dat'))
 return list(set(pacURLs))

def getWpadFiles ( ) : domainParts = socket . gethostname ( ) . split ( '.' ) pacURLs = [ ] for ii in range ( len ( domainParts ) ) : domain = '.' . join ( domainParts [ ii : ] ) pacURLs . append ( ( ( 'http://wpad.' + domain ) + '/wpad.dat' ) ) return list ( set ( pacURLs ) )
return possible pac file locations from the standard set of .