head	1.1;
branch	1.1.1;
access;
symbols
	RELEASE_0_1:1.1.1.1
	start:1.1.1.1
	hey:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2003.08.12.04.34.03;	author hey;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2003.08.12.04.34.03;	author hey;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#!/usr/bin/env python
# vim: set si sts=4 ts=8 sw=4 et:
# $Id$

### Copyright (C) 2003 Son, Kyung-uk <vvs740@@chol.com>
                                                                                
### 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

pyver = (2,2)
pygtkver = (1,99,15)
                                                                                
def ver2str(ver):
    return ".".join(map(str,ver))
                                                                                
#
# python version
#
import sys
if sys.version_info[:2] < pyver:
    print "DotDoumi requires python%s or higher to run." % ver2str(pyver)
    sys.exit(1)
                                                                                
#
# pygtk 2
#
try:
    import pygtk
    pygtk.require("2.0")
except ImportError, e:
    print e
    print "DotDoumi requires a recent version of pygtk to run."
    print "pygtk-%s or higher is recommended." % ver2str(pygtkver)
    sys.exit(1)
else:
    pygtk.require("2.0")
                                                                                

#
# pygtk version
#
import gtk
if gtk.pygtk_version < pygtkver:
    print "DotDoumi works best with pygtk-%s or higher. (found %s)" % (ver2str(pygtkver), ver2str(gtk.pygtk_version))
    print "Due to incompatible API changes some functions may not operate as expected."

#
# main
#
import dotdoumiapp
try:
    minusp = sys.argv.index("--profile")
    del sys.argv[minusp]
    import profile
    profile.run("dotdoumiapp.main()")
except ValueError:
    dotdoumiapp.main()
@


1.1.1.1
log
@dotdoumi
@
text
@@
