root/trunk/libffado/support/mixer-qt4/ffadomixer_config.py.in

Revision 1625, 0.8 kB (checked in by arnonym, 15 years ago)
  • add a small line to make vim use spaces for indentation
  • Don't compile ui-files to python-code at install-time. Load them from the pythondir during runtime.

Now the only reason to run scons (during ffado-mixer development) is when one of the .in-files where changed.

Line 
1 REGISTER_URL = '$REGISTRATION_URL'
2 INI_FILE_PATH = "$CONFIGDIR/registration.ini"
3
4 FFADO_CONFIG_DIR = "$CONFIGDIR"
5
6 FFADO_VERSION="$VERSION-$REVISION"
7
8 FFADO_DBUS_SERVER = 'org.ffado.Control'
9 FFADO_DBUS_BASEPATH = '/org/ffado/Control'
10
11 POLL_SLEEP_TIME_MSEC = 100 # 100ms
12
13 PYTHONDIR = "$PYTHONDIR"
14 SHAREDIR = "$SHAREDIR"
15
16 USER_CONFIG_FILE = "$USER_CONFIG_FILE"
17 SYSTEM_CONFIG_FILE = "$SYSTEM_CONFIG_FILE"
18
19 DEBUG = $DEBUG
20
21 UIDIR = PYTHONDIR
22 import os.path
23 if os.path.exists('support/mixer-qt4/mixer_global.ui'):
24     UIDIR = "support/mixer-qt4"
25 if os.path.exists('mixer_global.ui'):
26     UIDIR = "."
27
28 import os.path
29 from PyQt4 import uic
30 def uicLoad(file, object):
31     if not file.endswith(".ui"):
32         file += ".ui"
33     uic.loadUi(os.path.join(UIDIR,file), object)
34
35 # vim: et
Note: See TracBrowser for help on using the browser.