From 4fd4c946bd991b0414b0a037b3940369485ced1f Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Mon, 7 Dec 2009 17:55:02 +0100 Subject: PyHook: better logic for checking if abrtd is running rhbz#539987 --- lib/Plugins/Python.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/Plugins/Python.cpp') diff --git a/lib/Plugins/Python.cpp b/lib/Plugins/Python.cpp index a5e9909d..906e815d 100644 --- a/lib/Plugins/Python.cpp +++ b/lib/Plugins/Python.cpp @@ -4,7 +4,6 @@ #include "ABRTException.h" #define FILENAME_BACKTRACE "backtrace" -#define PYHOOK_CONFIG "/etc/abrt/pyhook.conf" static std::string CreateHash(const char *pDebugDumpDir) { @@ -26,25 +25,10 @@ std::string CAnalyzerPython::GetGlobalUUID(const char *pDebugDumpDir) void CAnalyzerPython::Init() { - std::ofstream fOutPySiteCustomize; - fOutPySiteCustomize.open(PYHOOK_CONFIG); - if (fOutPySiteCustomize.is_open()) - { - fOutPySiteCustomize << "enabled = yes" << std::endl; - fOutPySiteCustomize.close(); - } } void CAnalyzerPython::DeInit() { - // TODO: remove copied abrt exception handler - std::ofstream fOutPySiteCustomize; - fOutPySiteCustomize.open(PYHOOK_CONFIG); - if (fOutPySiteCustomize.is_open()) - { - fOutPySiteCustomize << "enabled = no" << std::endl; - fOutPySiteCustomize.close(); - } } PLUGIN_INFO(ANALYZER, -- cgit