Debian Codegraph @

lib/__init__.py

raw symbols SCIP
1 # # -*- coding: utf-8 -*-
2
3 #
4 # QBrz - Qt frontend to Breezy commands
5 # Copyright (C) 2006-2008 Lukáš Lalinský <[email protected]om>
6 # Copyright (C) 2008, 2009 Alexander Belchenko
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22 import os, sys
23
24 if sys.version_info < (3,4,0):
25 sys.stderr.write("You need python 3.4.0 or later to run this script\n")
26 exit(1)
27
28
29 # Special constant
30 MS_WINDOWS = (sys.platform == 'win32')
31
32
33 # Features dictionary:
34 # keys are feature names, values are optional parameters for those features.
35 # the meaning of parameters depend on the feature, so it's more like config.
36 # The keys names can use namespaces in the form 'domain.option'.
37 #
38 # Intended usage of this dict by the external code:
39 #
40 # if feature_name in FEATURES: then_do_something(); else: backward_compatible_code()
41 #
42 # or
43 #
44 # feature_value = FEATURES.get(feature_name); if feature_value == XXX: then_do_something()
45 #
46 # NOTE: No external code should add the keys or change the values to this dict!!!
47 #
48 FEATURES = dict(
49 # feature_name=None, # for features without extra parameters
50 # feature_name='1.2.3', # to specify optional version or parameter
51 # feature_name=[some list], # to specify the list of parameters
52 # etc.
53 qignore=None, # we have qignore
54 )