Merged r9481:9518 on jblum/grc_reorganize into trunk. Reorganized grc source under...
[debian/gnuradio] / grc / src / platforms / base / Constants.py.in
1 """
2 Copyright 2008 Free Software Foundation, Inc.
3 This file is part of GNU Radio
4
5 GNU Radio Companion is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 GNU Radio Companion is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18 """
19
20 import os
21
22 ##The current version of this code
23 VERSION = '@VERSION@'
24
25 ##Location of external data files.
26 DATA_DIR = '@datadir@'
27
28 ##DTD validator for saved flow graphs.
29 FLOW_GRAPH_DTD = os.path.join(DATA_DIR, 'flow_graph.dtd')
30
31 ##The default file extension for flow graphs.
32 FLOW_GRAPH_FILE_EXTENSION = '.grc'
33
34 ##The default file extension for saving flow graph snap shots.
35 IMAGE_FILE_EXTENSION = '.png'
36
37 ##The default path for the open/save dialogs.
38 DEFAULT_FILE_PATH = os.getcwd()
39
40 ##The default icon for the gtk windows.
41 PY_GTK_ICON = os.path.join(DATA_DIR, 'grc-icon-256.png')
42
43 ##The users home directory.
44 HOME_DIR = os.path.expanduser('~')