File: config.py.in

package info (click to toggle)
gnome-specimen 0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,024 kB
  • ctags: 85
  • sloc: sh: 3,510; python: 569; makefile: 133
file content (42 lines) | stat: -rw-r--r-- 1,645 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# GNOME Specimen, a font preview application for GNOME
# Copyright (C) 2006--2007  Wouter Bolsterlee <wbolster@gnome.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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.


from os.path import join, exists, dirname, realpath

PACKAGE     = "@PACKAGE_NAME@"
VERSION     = "@PACKAGE_VERSION@"

# Don't bother using translations from the source directory (too much hassle,
# if not impossible because of the $LANG/LC_MESSAGES directories)
LOCALEDIR   = "@LOCALEDIR@"

# Allow to run uninstalled by detecting gnome-specimen.in
if exists(join(dirname(__file__), '../gnome-specimen.in')):
    print "Running from source directory; not using installation paths!"

    source_datadir = realpath(join(dirname(__file__), '../data'))

    DATADIR     = source_datadir
    PKGDATADIR  = source_datadir
    GLADEDIR    = source_datadir

# Normal situation: use installation paths from ./configure
else:
    DATADIR     = "@DATADIR@"
    PKGDATADIR  = "@PKGDATADIR@"
    GLADEDIR    = "@GLADEDIR@"