66b773e79e29d551d5f7800adfd41282ad325a0a
[debian/gnuradio] / grc / src / grc_gnuradio / 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 ##@package grc_gnuradio.Constants
20 #Global constants for grc gnuradio package
21 #@author Josh Blum
22
23 import os
24 import sys
25 import stat
26
27 PYEXEC = '@PYTHONW@'
28
29 #setup paths
30 DOCS_DIR = os.path.join('@docdir@', 'xml')
31 DATA_DIR = '@datadir@'
32 BLOCKS_DIR = '@blocksdir@'
33 HIER_BLOCKS_LIB_DIR = os.path.join(os.path.expanduser('~'), '.grc_gnuradio')
34
35 #file creation modes
36 TOP_BLOCK_FILE_MODE = stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP | stat.S_IROTH
37 HIER_BLOCK_FILE_MODE = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IROTH
38
39 #data files
40 FLOW_GRAPH_TEMPLATE = os.path.join(DATA_DIR, 'flow_graph.tmpl')
41 BLOCK_DTD = os.path.join(DATA_DIR, 'block.dtd')
42 BLOCK_TREE = os.path.join(DATA_DIR, 'block_tree.xml')
43 DEFAULT_FLOW_GRAPH = os.path.join(DATA_DIR, 'default_flow_graph.grc.xml')
44