Module Import alias Import alias Import alias Import alias ImportFrom alias alias alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return Str orelse If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num body Return Str orelse If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num body Return Str orelse If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num body Return Str orelse If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num body Return Str orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad body Return Call NameLoad Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore Call AttributeLoad NameLoad attr orelse Return Call NameLoad Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Import alias ImportFrom alias alias Assign NameStore Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Num NameLoad Num Num NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If CompareEq NameLoad Str body Return Call NameLoad orelse If CompareEq NameLoad Str body Return Call NameLoad orelse Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Dict TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad body Raise NameLoad Return NameLoad decorator_list
N/A N/A os N/A logging N/A string N/A sys datadog.util.compat configparser StringIO is_p3k N/A DATADOG_CONF datadog.conf N/A log N/A N/A logging getLogger dd.datadogpy CfgNotFound N/A Exception N/A N/A N/A PathNotFound N/A Exception N/A N/A N/A get_os N/A N/A N/A N/A N/A Human-friendly OS name N/A N/A N/A sys platform darwin N/A N/A mac N/A N/A N/A N/A N/A N/A sys platform find freebsd -1 N/A N/A freebsd N/A N/A N/A N/A N/A N/A sys platform find linux -1 N/A N/A linux N/A N/A N/A N/A N/A N/A sys platform find win32 -1 N/A N/A windows N/A N/A N/A N/A N/A N/A sys platform find sunos -1 N/A N/A solaris N/A N/A N/A sys platform N/A skip_leading_wsp N/A N/A f N/A N/A N/A Works on a file, returns a file-like object N/A N/A is_p3k N/A N/A N/A StringIO N/A N/A join N/A N/A N/A x strip N/A x N/A N/A f readlines N/A N/A N/A StringIO N/A N/A join N/A map N/A string strip N/A N/A f readlines N/A _windows_commondata_path N/A N/A N/A N/A N/A Return the common appdata path, using ctypes
    From http://stackoverflow.com/questions/626796/    how-do-i-find-the-windows-common-application-data-folder-using-python
     N/A ctypes ctypes wintypes windll N/A CSIDL_COMMON_APPDATA 35 N/A _SHGetFolderPath N/A N/A windll shell32 SHGetFolderPathW N/A N/A _SHGetFolderPath argtypes N/A N/A wintypes HWND N/A ctypes c_int N/A wintypes HANDLE N/A wintypes DWORD N/A wintypes LPCWSTR N/A path_buf N/A N/A ctypes create_unicode_buffer N/A wintypes MAX_PATH N/A N/A _SHGetFolderPath 0 CSIDL_COMMON_APPDATA 0 0 path_buf N/A N/A path_buf value N/A _windows_config_path N/A N/A N/A N/A N/A common_data N/A _windows_commondata_path N/A path N/A N/A N/A os path join common_data Datadog DATADOG_CONF N/A N/A N/A N/A os path exists path N/A N/A path N/A N/A PathNotFound path N/A _unix_config_path N/A N/A N/A N/A N/A path N/A N/A N/A os path join /etc/dd-agent DATADOG_CONF N/A N/A N/A N/A os path exists path N/A N/A path N/A N/A PathNotFound path N/A _mac_config_path N/A N/A N/A N/A N/A path N/A N/A N/A os path join ~/.datadog-agent/agent DATADOG_CONF N/A path N/A N/A N/A os path expanduser path N/A N/A N/A N/A os path exists path N/A N/A path N/A N/A PathNotFound path N/A get_config_path N/A N/A cfg_path os_name N/A None None N/A N/A N/A N/A cfg_path None N/A N/A N/A os path exists cfg_path N/A N/A cfg_path N/A N/A os_name None N/A N/A os_name N/A get_os N/A N/A os_name windows N/A N/A N/A _windows_config_path N/A N/A N/A os_name mac N/A N/A N/A _mac_config_path N/A N/A N/A _unix_config_path N/A get_config N/A N/A cfg_path options N/A None None N/A N/A agentConfig N/A N/A N/A N/A path N/A N/A N/A os path realpath __file__ N/A path N/A N/A N/A os path dirname path N/A config_path N/A get_config_path cfg_path os_name N/A get_os N/A config N/A N/A configparser ConfigParser N/A N/A N/A config readfp N/A skip_leading_wsp N/A open config_path N/A option N/A N/A config options Main N/A N/A N/A agentConfig N/A option N/A N/A config get Main option N/A N/A N/A Exception N/A N/A CfgNotFound N/A agentConfig N/A