21 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
22 |
|
|
23 |
import ConfigParser |
import ConfigParser |
|
import os |
|
|
|
|
24 |
|
|
25 |
class Config(ConfigParser): |
class Config(ConfigParser): |
26 |
"""A ConfigParser module with our defaults auto-loaded |
"""A ConfigParser module with our defaults auto-loaded |
27 |
""" |
""" |
28 |
|
|
|
# this works but the scope of the variable is wrong, need to look into |
|
|
# global |
|
|
def phone_home(): |
|
|
global CIRCUS_HOME |
|
|
if 'CIRCUS_HOME' in os.environ: |
|
|
CIRCUS_HOME = os.environ['CIRCUS_HOME'] |
|
|
|
|
29 |
user_config = None |
user_config = None |
30 |
defaults = { |
defaults = { |
31 |
"modules:dir": "/usr/share/circus/modules" |
"modules:dir": "/usr/share/circus/modules" |