[pychess] push by mattgatto - Made pychess startup script detect whether gtksourceview is installed on 2012-01-02 00:12 GMT

0 views
Skip to first unread message

pyc...@googlecode.com

unread,
Jan 1, 2012, 7:12:22 PM1/1/12
to pychess...@googlegroups.com
Revision: ccff19ce7ff9
Author: Matthew Gatto <matt...@gmail.com>
Date: Sun Jan 1 16:11:43 2012
Log: Made pychess startup script detect whether gtksourceview is
installed
http://code.google.com/p/pychess/source/detail?r=ccff19ce7ff9

Modified:
/pychess

=======================================
--- /pychess Tue Dec 6 02:27:42 2011
+++ /pychess Sun Jan 1 16:11:43 2012
@@ -19,9 +19,18 @@
try:
import rsvg
except ImportError:
- print 'ERROR: Could not load the rsvg module.'
- print 'You need to install the rsvg package which is called
python-rsvg in'
- print 'Debian/Ubuntu and gnome-python2-rsvg in RPM based distributions
like Fedora'
+ print 'ERROR: Could not load the rsvg python module.'
+ print 'You need to install the rsvg python package which is called '
+ print 'python-rsvg in Debian/Ubuntu and gnome-python2-rsvg in RPM
based '
+ print 'distributions like Fedora'
+ sys.exit(1)
+
+try:
+ import gtksourceview2
+except ImportError:
+ print 'ERROR: Could not load the gtksourceview2 python module.'
+ print 'You need to install the gtksourceview2 python package which is '
+ print 'called pygtksourceview in most distributions'
sys.exit(1)


Reply all
Reply to author
Forward
0 new messages