Commits

Moises Henriquez committed b2a7f47

debugging X error crash

  • Participants
  • Parent commits c91b204

Comments (0)

Files changed (3)

         packages=['vpackager'],
         package_dir={'vpackager': 'src/vpackager'},
         package_data={'vpackager': ['data/*']},
+        requires =['psutil'],
         install_requires=['psutil',
             'sqlite3'
             ],

src/scripts/vpackager

 #!/usr/bin/env python
 
+#    This file is part of vpackager.
+#
+#    vpackager is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License v2 as published by
+#    the Free Software Foundation.
+#
+#    vpackager is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with vpackager.  If not, see <http://www.gnu.org/licenses/>.
+
+
 import gtk
 from vpackager import bot
 from vpackager import vpackager as vp

src/vpackager/bot.py

 import sqlite3
 import urllib2
 import shutil
-
+import glib
 
 __author__ = 'M0E-lnx'
 __author_email__ = 'moc.liamg@xnl.E0M'[::-1]
         if dia.run():
             dia.destroy()
 
-    def _play_output(self, line):
+
+    def _play_output(self, line=None):
+        gtk.gdk.threads_enter()
         buf = self.outputplayer.get_buffer()
         buf.insert(buf.get_end_iter(), line)
-        gtk.gdk.threads_enter()
+        #gtk.gdk.threads_enter()
         vad = self.scrollarea.get_vadjustment()
         newpos = vad.get_upper() - vad.get_page_size()
         vad.set_value(newpos)