parameters: ()
return_statement: return config
docstring: 获取 config
docstring_summary: 获取 config
docstring_tokens: 获取 config
function: def getconf():
      '''获取 config
      '''
      config = {}
      ##
  
      if not os.path.isdir(dirs["conf"]): os.makedirs(dirs["conf"])
      if not os.path.isdir(dirs["avatar"]): os.makedirs(dirs["avatar"])
  
      for k, v in globals().items():
          if not k.startswith('__') and (
                isinstance(v, str)
             or isinstance(v, int)
             or isinstance(v, long)
             or isinstance(v, float)
             or isinstance(v, dict)
             or isinstance(v, list)
             or isinstance(v, bool)
             ):
              config[k] = v
      return config
function_tokens: def getconf ( ) : config = { } ## if not os . path . isdir ( dirs [ "conf" ] ) : os . makedirs ( dirs [ "conf" ] ) if not os . path . isdir ( dirs [ "avatar" ] ) : os . makedirs ( dirs [ "avatar" ] ) for k , v in globals ( ) . items ( ) : if not k . startswith ( '__' ) and ( isinstance ( v , str ) or isinstance ( v , int ) or isinstance ( v , long ) or isinstance ( v , float ) or isinstance ( v , dict ) or isinstance ( v , list ) or isinstance ( v , bool ) ) : config [ k ] = v return config