Subversion Repositories SmartDukaan

Rev

Rev 14145 | Rev 14154 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Created on Feb 25, 2015

@author: amit
'''
#!/usr/bin/python    
import ConfigParser
config = ConfigParser.RawConfigParser()
config.read('ConfigFile.properties')

def getConfig(propertyName):
    global config
    value = config.get('PROD', propertyName)
    if value is None:
        return config.get('DEFAULT', propertyName)
    return value

def main():
    print getConfig('WALLET_CREDIT_URL')

if __name__ == '__main__':
    main()