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: 7081 $

Functions [hide private]
 
_versionStringToTuple(versionString) source code
Variables [hide private]
  __thisdir = '/home/thomas/flu/svn/flumotion/trunk/flumotion/co...
  _config = {'bindir': '/home/thomas/flu/svn/flumotion/trunk/bin...
boolean isinstalled = False
whether an installed version is being run
stringed cachedir = '/home/thomas/flu/svn/flumotion/trunk/cache'
directory where cached code is stored
string configdir = '/home/thomas/flu/svn/flumotion/trunk/conf'
directory where configuration files are stored
string daemondir = '/home/thomas/flu/svn/flumotion/trunk'
directory where daemonized programs should run
string datadir = '/home/thomas/flu/svn/flumotion/trunk/data'
directory where data files are stored
string gladedir = '/home/thomas/flu/svn/flumotion/trunk/data/glade'
directory where glade files are stored
string imagedir = '/home/thomas/flu/svn/flumotion/trunk/data/image'
directory where image files are stored
string logdir = '/home/thomas/flu/svn/flumotion/trunk/log'
directory where log files are stored
  localedatadir = '/home/thomas/flu/svn/flumotion/trunk'
string pythondir = '/home/thomas/flu/svn/flumotion/trunk'
directory where the flumotion python files are stored
string registrydir = '/home/thomas/flu/svn/flumotion/trunk/cache/regi...
directory where the registry files are stored
string rundir = '/home/thomas/flu/svn/flumotion/trunk/run'
directory where the run/pid files are stored
string bindir = '/home/thomas/flu/svn/flumotion/trunk/bin'
directory where the flumotion executables live
string sbindir = '/home/thomas/flu/svn/flumotion/trunk/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.5.2.1'
Flumotion version number
4-tuple of integers versionTuple = (0, 5, 2, 1)
Flumotion version number
string

# default values for service-related stuff

branchName = 'trunk'
Flumotion branch name
  processTermWait = 10
how long to wait before timing out term signals @type processTermWait int
  processKillWait = 5
how long to wait before timing out kill signals @type processKillWait int
int heartbeatInterval = 5
component heartbeat interval, in seconds
Variables Details [hide private]

__thisdir

Value:
'/home/thomas/flu/svn/flumotion/trunk/flumotion/configure'

_config

Value:
{'bindir': '/home/thomas/flu/svn/flumotion/trunk/bin',
 'cachedir': '/home/thomas/flu/svn/flumotion/trunk/cache',
 'configdir': '/home/thomas/flu/svn/flumotion/trunk/conf',
 'daemondir': '/home/thomas/flu/svn/flumotion/trunk',
 'datadir': '/home/thomas/flu/svn/flumotion/trunk/data',
 'gladedir': '/home/thomas/flu/svn/flumotion/trunk/data/glade',
 'imagedir': '/home/thomas/flu/svn/flumotion/trunk/data/image',
 'isinstalled': False,
...

registrydir

directory where the registry files are stored
Type:
string
Value:
'/home/thomas/flu/svn/flumotion/trunk/cache/registry'

defaultGstPortRange

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