Package flumotion :: Package configure :: Module configure
[hide private]

Module configure

source code

configure-time variables for installed or uninstalled operation

Code should run

>>> from flumotion.configure import configure

and then access the variables from the configure module. For example:

>>> print configure.gladedir

The values are decided at ./configure time. They can be overridden at startup by programs based on environment or options. This allows running with different configdir, logdir and rundir.

Functions [hide private]
 
_versionStringToTuple(versionString) source code
Variables [hide private]
  __thisdir = '/builddir/build/BUILD/flumotion-0.4.2/flumotion/c...
  _config = {'bindir': '/builddir/build/BUILD/flumotion-0.4.2/bi...
string bindir = '/builddir/build/BUILD/flumotion-0.4.2/bin'
directory where the flumotion executables live
string cachedir = '/builddir/build/BUILD/flumotion-0.4.2/cache'
directory where cached code is stored
string configdir = '/builddir/build/BUILD/flumotion-0.4.2/conf'
directory where configuration files are stored
string daemondir = '/builddir/build/BUILD/flumotion-0.4.2'
directory where daemonized programs should run
string datadir = '/builddir/build/BUILD/flumotion-0.4.2/data'
directory where data files are stored
list of ints defaultGstPortRange = [8600, 8601, 8602, 8603, 8604, 8605, 860...
the default range of internal GStreamer ports
int defaultSSLManagerPort = 7531
the default manager port for SSL communication
list of ints defaultStreamPortRange = [8800, 8801, 8802, 8803, 8804, 8805, ...
the default range of external streaming ports
int defaultTCPManagerPort = 8642
the default manager port for TCP communication
  dictionary = {'__builtins__': {'ArithmeticError': <type 'excep...
string gladedir = '/builddir/build/BUILD/flumotion-0.4.2/data/glade'
directory where glade files are stored
  heartbeatInterval = 5
string imagedir = '/builddir/build/BUILD/flumotion-0.4.2/data/image'
directory where image files are stored
boolean isinstalled = False
whether an installed version is being run
  key = 'sbindir'
  localedatadir = '/builddir/build/BUILD/flumotion-0.4.2'
string logdir = '/builddir/build/BUILD/flumotion-0.4.2/log'
directory where log files are stored
  processKillWait = 5
  processTermWait = 5
string pythondir = '/builddir/build/BUILD/flumotion-0.4.2'
directory where the flumotion python files are stored
string registrydir = '/builddir/build/BUILD/flumotion-0.4.2/cache/reg...
directory where the registry files are stored
string rundir = '/builddir/build/BUILD/flumotion-0.4.2/run'
directory where the run/pid files are stored
string sbindir = '/builddir/build/BUILD/flumotion-0.4.2/bin'
directory where the flumotion service program lives
  value = '/builddir/build/BUILD/flumotion-0.4.2/bin'
string version = '0.4.2'
Flumotion version number
4-tuple of integers versionTuple = (0, 4, 2, 0)
Flumotion version number
Variables Details [hide private]

__thisdir

Value:
'/builddir/build/BUILD/flumotion-0.4.2/flumotion/configure'

_config

Value:
{'bindir': '/builddir/build/BUILD/flumotion-0.4.2/bin',
 'cachedir': '/builddir/build/BUILD/flumotion-0.4.2/cache',
 'configdir': '/builddir/build/BUILD/flumotion-0.4.2/conf',
 'daemondir': '/builddir/build/BUILD/flumotion-0.4.2',
 'datadir': '/builddir/build/BUILD/flumotion-0.4.2/data',
 'defaultGstPortRange': [8600,
                         8601,
                         8602,
...

defaultGstPortRange

the default range of internal GStreamer ports
Type:
list of ints
Value:
[8600,
 8601,
 8602,
 8603,
 8604,
 8605,
 8606,
 8607,
...

defaultStreamPortRange

the default range of external streaming ports
Type:
list of ints
Value:
[8800,
 8801,
 8802,
 8803,
 8804,
 8805,
 8806,
 8807,
...

dictionary

Value:
{'__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError\
'>,
                  'AssertionError': <type 'exceptions.AssertionError'>\
,
                  'AttributeError': <type 'exceptions.AttributeError'>\
,
                  'BaseException': <type 'exceptions.BaseException'>,
                  'DeprecationWarning': <type 'exceptions.DeprecationW\
...

registrydir

directory where the registry files are stored
Type:
string
Value:
'/builddir/build/BUILD/flumotion-0.4.2/cache/registry'