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.


Version: $Rev$

Functions [hide private]
 
_versionStringToTuple(versionString) source code
Variables [hide private]
  __thisdir = '/builddir/build/BUILD/flumotion-0.10.0/flumotion/...
  _config = {'bindir': '/builddir/build/BUILD/flumotion-0.10.0/b...
boolean isinstalled = False
whether an installed version is being run
stringed cachedir = '/builddir/build/BUILD/flumotion-0.10.0/cache'
directory where cached code is stored
string configdir = '/builddir/build/BUILD/flumotion-0.10.0/conf'
directory where configuration files are stored
string daemondir = '/builddir/build/BUILD/flumotion-0.10.0'
directory where daemonized programs should run
string datadir = '/builddir/build/BUILD/flumotion-0.10.0/data'
directory where data files are stored
string gladedir = '/builddir/build/BUILD/flumotion-0.10.0/data/glade'
directory where glade files are stored
string imagedir = '/builddir/build/BUILD/flumotion-0.10.0/data/image'
directory where image files are stored
string logdir = '/builddir/build/BUILD/flumotion-0.10.0/log'
directory where log files are stored
  localedatadir = '/builddir/build/BUILD/flumotion-0.10.0'
string pythondir = '/builddir/build/BUILD/flumotion-0.10.0'
directory where the flumotion python files are stored
string registrydir = '/builddir/build/BUILD/flumotion-0.10.0/cache/re...
directory where the registry files are stored
string rundir = '/builddir/build/BUILD/flumotion-0.10.0/run'
directory where the run/pid files are stored
string bindir = '/builddir/build/BUILD/flumotion-0.10.0/bin'
directory where the flumotion executables live
string sbindir = '/builddir/build/BUILD/flumotion-0.10.0/bin'
directory where the flumotion service program lives
int defaultTCPManagerPort = 8642
the default manager port for TCP communication
int defaultSSLManagerPort = 7531
the default manager port for SSL communication
int defaultHTTPStreamPort = 8800
the default external http streaming port
list of ints defaultGstPortRange = [8600, 8601, 8602, 8603, 8604, 8605, 860...
the default range of internal GStreamer ports
string PACKAGE = 'flumotion'
Flumotion package
string version = '0.10.0'
Flumotion version number
4-tuple of integers versionTuple = (0, 10, 0, 0)
Flumotion version number
string

# default values for service-related stuff

branchName = 'trunk'
Flumotion branch name
  processTermWait = 20
how long to wait before timing out term signals @type processTermWait int
  processKillWait = 10
how long to wait before timing out kill signals @type processKillWait int
int heartbeatInterval = 5
component heartbeat interval, in seconds
float pingTimeoutMultiplier = 6.0
how long to wait before assuming a lost connection, specified as a multiple of the heartbeatInterval
  __package__ = 'flumotion.configure'
Variables Details [hide private]

__thisdir

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

_config

Value:
{'bindir': '/builddir/build/BUILD/flumotion-0.10.0/bin',
 'cachedir': '/builddir/build/BUILD/flumotion-0.10.0/cache',
 'configdir': '/builddir/build/BUILD/flumotion-0.10.0/conf',
 'daemondir': '/builddir/build/BUILD/flumotion-0.10.0',
 'datadir': '/builddir/build/BUILD/flumotion-0.10.0/data',
 'gladedir': '/builddir/build/BUILD/flumotion-0.10.0/data/glade',
 'imagedir': '/builddir/build/BUILD/flumotion-0.10.0/data/image',
 'isinstalled': False,
...

registrydir

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

defaultGstPortRange

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