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
|
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
|
|
_marker = <object object at 0x4003d468>
|
|
_configuration = {'moul': {'installdir': '/home/heimes/dev/pymoul/Mys...
|
|
_directories = <moul.config.Directories object at 0x4039cd2c>
|
getOption(section,
name=None,
default=<object object at 0x4003d468>)
| |
Get configuration option
-
|
setOption(section,
name=None,
value=<object object at 0x4003d468>)
| |
Set configuratin option
-
|
Add a new configuration section
-
|
List
>>> cfg = listConfig()
>>> len(cfg) > 0
True
>>> type(cfg)
<type 'dict'>
-
|
_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>
|
|