redesigned subscribe dialog
[straw.git] / constants.py.in
blobf6721e9013ae3d6bc1576770e0659a88ab0a078a
1 # constants
3 import os
4 import os.path
5 import pygtk
6 pygtk.require('2.0')
8 APPNAME = '$APPNAME'
9 VERSION = '$VERSION'
10 STRAW_URL = "http://www.gnome.org/projects/straw/"
11 STRAW_REF_URL = "%sstraw-ref.html" % STRAW_URL
12 libdir = os.path.normpath('$libdir')
13 localedir = os.path.normpath(os.path.join('$datadir','locale'))
14 datadir = os.path.normpath(os.path.join('$datadir','straw'))
16 # if STRAW_IN_SOURCE_DIR, this will be the glade/ and images/ in source
17 # which is different from datadir (data/), whereas on default installations,
18 # the glade file, image files, and other data would be on the same directory
19 # (usually PREFIX/share/straw).
20 gladedir = datadir
21 imagedir = datadir
23 def python_version():
24 import sys
25 return sys.version
27 def pygtk_version():
28 # returns (major,minor,extra) triple
29 import gtk
30 return gtk.pygtk_version