#!/usr/bin/python

# KungFu - A GStreamer based DVD ripper
# Copyright (C) 2006 Jason Gerard DeRose <jderose@jasonderose.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

import gobject
gobject.threads_init()

import pygtk
pygtk.require('2.0')

import pygst
pygst.require('0.10')

import logging
from KungFu import kf_util

# I don't setup logging in KungFu/__init__.py because I don't want any files
# created when building the package (setup.py imports KungFu).

level = logging.DEBUG
format = '%(levelname)s %(name)s %(message)s'
logging.basicConfig(
	level=level,
	format=format,
	filename=kf_util.Paths.logfile,
	filemode='w'
)
console = logging.StreamHandler()
console.setLevel(level)
formatter = logging.Formatter(format)
console.setFormatter(formatter)
logging.getLogger('').addHandler(console)


from KungFu import kf_gtk
kf_gtk.GUI()
