Package moul :: Package config
[hide private]
[frames] | no frames]

Package config



Configuration package
>>> from moul.osdependent import startMoul
>>> from moul.osdependent import isMoulRunning
>>> installDir = lookupDir('install')
>>> from time import sleep

Start MOUL #>>> popen = startMoul(installDir)

Wait a bit before testing the rest #>>> sleep(0.2) #>>> bool(popen.pid) True #>>> popen.poll() #>>> popen.returncode is None True

Check the running tester #>>> isMoulRunning() u'urulauncher.exe'

#>>> popen.wait() #>>> popen.returncode #0

Submodules [hide private]

Classes [hide private]
  Configuration
  Directories
TODO: to be replaced or removed

Functions [hide private]
  getOption(section, name=None, default=<object object at 0x4003d468>)
Get configuration option
  setOption(section, name=None, value=<object object at 0x4003d468>)
Set configuratin option
  addSection(section)
Add a new configuration section
  listConfig()
List
  lookupDir(name)
Lookup MOUL directory

Variables [hide private]
  _marker = <object object at 0x4003d468>
  _configuration = {'moul': {'installdir': '/home/heimes/dev/pymoul/Mys...
  _directories = <moul.config.Directories object at 0x4039cd2c>

Function Details [hide private]

getOption(section, name=None, default=<object object at 0x4003d468>)

 
Get configuration option

setOption(section, name=None, value=<object object at 0x4003d468>)

 
Set configuratin option

addSection(section)

 
Add a new configuration section

listConfig()

 
List
>>> cfg = listConfig()
>>> len(cfg) > 0
True
>>> type(cfg)
<type 'dict'>

lookupDir(name)

 
Lookup MOUL directory

Variables Details [hide private]

_marker

None
Value:
<object object at 0x4003d468>                                          
      

_configuration

None
Value:
{'moul': {'installdir': '/home/heimes/dev/pymoul/MystOnline'}}         
      

_directories

None
Value:
<moul.config.Directories object at 0x4039cd2c>