summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobthreads.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobthreads.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobthreads.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobthreads.py b/bitbake/lib/bb/ui/crumbs/hobthreads.py
deleted file mode 100644
index 64ef91245a..0000000000
--- a/bitbake/lib/bb/ui/crumbs/hobthreads.py
+++ /dev/null
@@ -1,51 +0,0 @@
1#!/usr/bin/env python
2#
3# BitBake Graphical GTK User Interface
4#
5# Copyright (C) 2012 Intel Corporation
6#
7# Authored by Cristiana Voicu <cristiana.voicu@intel.com>
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License version 2 as
11# published by the Free Software Foundation.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License along
19# with this program; if not, write to the Free Software Foundation, Inc.,
20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22import threading
23import gtk
24import subprocess
25
26#
27# OpeningLogThread
28#
29class OpeningLogThread(threading.Thread):
30 def __init__(self, dialog, log_file, parent):
31 threading.Thread.__init__(self)
32 self.dialog =dialog
33 self.log_file = log_file
34 self.parent = parent
35
36 def run(self):
37 p = subprocess.Popen(['xdg-open',self.log_file])
38 retcode = p.poll()
39 while (retcode == None):
40 if self.parent.stop:
41 try:
42 p.terminate()
43 except OSError, e:
44 if e.errno == 3:
45 pass # no such process
46 else:
47 raise
48 retcode = p.poll()
49
50 self.dialog.destroy()
51