Subversion Repositories SmartDukaan

Rev

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

Rev 14141 Rev 14145
Line 6... Line 6...
6
#!/usr/bin/python    
6
#!/usr/bin/python    
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(property):
11
def getConfig(propertyName):
12
    value = config.get('LOCAL', property)
12
    value = config.get('LOCAL', propertyName)
13
    if value is None:
13
    if value is None:
14
        return config.get('DEFAULT', property)
14
        return config.get('DEFAULT', propertyName)
15
    return value
15
    return value
16
 
16
 
17
def main():
17
def main():
18
    print getConfig('USER_LOOKUP_URL')
18
    print getConfig('WALLET_CREDIT_URL')
19
 
19
 
20
if __name__ == '__main__':
20
if __name__ == '__main__':
21
    main()
21
    main()