def siteFunctionsPath():
 try:
  cmd = "zsh -f -c 'echo ${(M)fpath:#/*/site-functions}'"
  output = commands.getoutput(cmd)
  if os.path.isdir(output):
   return output
 except:
  pass

def siteFunctionsPath ( ) : try : cmd = "zsh -f -c 'echo ${(M)fpath:#/*/site-functions}'" output = commands . getoutput ( cmd ) if os . path . isdir ( output ) : return output except : pass
return the path to the system-wide site-functions directory or c{none} if it cannot be determined .