parameters: (self)
return_statement: return [expand(f) for f in config_files if f.strip()]
docstring: Return list of config files, from environment or standard.
docstring_summary: Return list of config files, from environment or standard.
docstring_tokens: Return list of config files from environment or standard .
function: def get_standard_config_files(self):
          """Return list of config files, from environment or standard."""
          try:
              config_files = os.environ['DOCUTILSCONFIG'].split(os.pathsep)
          except KeyError:
              config_files = self.standard_config_files
  
          # If 'HOME' is not set, expandvars() requires the 'pwd' module which is
          # not available under certain environments, for example, within
          # mod_python.  The publisher ends up in here, and we need to publish
          # from within mod_python.  Therefore we need to avoid expanding when we
          # are in those environments.
          expand = os.path.expanduser
          if 'HOME' not in os.environ:
              try:
                  import pwd
              except ImportError:
                  expand = lambda x: x
          return [expand(f) for f in config_files if f.strip()]
function_tokens: def get_standard_config_files ( self ) : try : config_files = os . environ [ 'DOCUTILSCONFIG' ] . split ( os . pathsep ) except KeyError : config_files = self . standard_config_files # If 'HOME' is not set, expandvars() requires the 'pwd' module which is # not available under certain environments, for example, within # mod_python.  The publisher ends up in here, and we need to publish # from within mod_python.  Therefore we need to avoid expanding when we # are in those environments. expand = os . path . expanduser if 'HOME' not in os . environ : try : import pwd except ImportError : expand = lambda x : x return [ expand ( f ) for f in config_files if f . strip ( ) ]