Subversion Repositories SmartDukaan

Rev

Rev 14145 | Rev 14154 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14145 Rev 14152
Line 7... Line 7...
7
import ConfigParser
7
import ConfigParser
8
config = ConfigParser.RawConfigParser()
8
config = ConfigParser.RawConfigParser()
9
config.read('ConfigFile.properties')
9
config.read('ConfigFile.properties')
10
 
10
 
11
def getConfig(propertyName):
11
def getConfig(propertyName):
-
 
12
    global config
12
    value = config.get('LOCAL', propertyName)
13
    value = config.get('PROD', propertyName)
13
    if value is None:
14
    if value is None:
14
        return config.get('DEFAULT', propertyName)
15
        return config.get('DEFAULT', propertyName)
15
    return value
16
    return value
16
 
17
 
17
def main():
18
def main():